2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 21:23:34 +08:00
artiq/examples/flopping_f_simulation_gui.py

20 lines
462 B
Python

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()
}