2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 11:48:27 +08:00
artiq/examples/flopping_f_simulation_gui.py

20 lines
462 B
Python
Raw Normal View History

2015-01-26 23:37:33 +08:00
import asyncio
from gi.repository import Gtk
class Controls:
@asyncio.coroutine
def build(self, get_data):
self.builder = Gtk.Builder()
data = yield from get_data("flopping_f_simulation_gui.glade")
self.builder.add_from_string(data)
def get_top_widget(self):
return self.builder.get_object("top")
def get_arguments(self):
return {
"F0": self.builder.get_object("F0").get_value()
}