Script execution
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user