2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-27 20:28:25 +08:00
artiq/examples/master/repository/flopping_f_simulation_gui.py

21 lines
609 B
Python
Raw Normal View History

from artiq import GladeControls
2015-01-26 23:37:33 +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
def finalize(self):
getparam = self.builder.get_object("getparam")
getparam.connect("clicked", self.getparam)
2015-01-26 23:37:33 +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()
}