diff --git a/script/test.py b/script/test.py index 0dad992..8c0e5c1 100644 --- a/script/test.py +++ b/script/test.py @@ -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"] ) \ No newline at end of file +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)