2015-02-05 19:50:03 +08:00
|
|
|
from artiq import GladeControls
|
2015-01-26 23:37:33 +08:00
|
|
|
|
|
|
|
|
2015-02-04 16:13:56 +08:00
|
|
|
class Controls(GladeControls):
|
|
|
|
def __init__(self, facilities):
|
|
|
|
GladeControls.__init__(self, facilities,
|
|
|
|
"flopping_f_simulation_gui.glade")
|
2015-01-26 23:37:33 +08:00
|
|
|
|
2015-02-04 16:13:56 +08:00
|
|
|
def finalize(self):
|
|
|
|
getparam = self.builder.get_object("getparam")
|
|
|
|
getparam.connect("clicked", self.getparam)
|
2015-01-26 23:37:33 +08:00
|
|
|
|
2015-02-04 16:13:56 +08:00
|
|
|
def getparam(self, widget):
|
|
|
|
F0 = self.facilities.get_parameter("flopping_freq")
|
|
|
|
self.builder.get_object("F0").set_value(F0)
|
2015-01-26 23:37:33 +08:00
|
|
|
|
|
|
|
def get_arguments(self):
|
|
|
|
return {
|
|
|
|
"F0": self.builder.get_object("F0").get_value()
|
|
|
|
}
|