mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
20 lines
462 B
Python
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()
|
|
}
|