Script execution

This commit is contained in:
2015-12-15 14:42:53 +01:00
parent f041f381d1
commit 84df487c0a

View File

@@ -1,18 +1,12 @@
from startup import *
import ch.psi.utils.swing.SwingUtils as SwingUtils
def test1():
print beam_ref.read()
#update()
def getString(msg, default = None, alternatives = None):
if alternatives is None:
return SwingUtils.getString(None,msg, default)
else:
return SwingUtils.getString(None,msg, alternatives, default)
print test1()
#print getString("Enter", "a1", ["a1", "a2"] )
print get_option("Choose:" , option_type = SwingUtils.OptionType.YesNoCancel)
print get_string("Enter string:", default = "default")
print get_string("Choose string:", default = "default", alternatives = ["default", "alt1", "alt2"])
print get_string("Enter password:", password = True)
#show_message(msg, title = None, blocking = False)