@@ -83,9 +83,19 @@ def __init__(self):
83
83
Window .__init__ (self , title = "Scheduler" )
84
84
self .set_default_size (720 , 570 )
85
85
86
- vpane = Gtk .VPaned ()
87
- vpane .set_position (270 )
88
- self .add (vpane )
86
+ topvbox = Gtk .VBox (spacing = 6 )
87
+ self .add (topvbox )
88
+
89
+ hbox = Gtk .HBox (spacing = 6 )
90
+ enable = Gtk .Switch (active = True )
91
+ label = Gtk .Label ("Run experiments" )
92
+ label .set_justify (Gtk .Justification .RIGHT )
93
+ hbox .pack_start (label , False , False , 0 )
94
+ hbox .pack_start (enable , False , False , 0 )
95
+ topvbox .pack_start (hbox , False , False , 0 )
96
+
97
+ notebook = Gtk .Notebook ()
98
+ topvbox .pack_start (notebook , True , True , 0 )
89
99
90
100
self .queue_store = Gtk .ListStore (int , str , str , str , str )
91
101
tree = Gtk .TreeView (self .queue_store )
@@ -97,10 +107,7 @@ def __init__(self):
97
107
scroll = Gtk .ScrolledWindow ()
98
108
scroll .add (tree )
99
109
vbox = Gtk .VBox (spacing = 6 )
100
- label = Gtk .Label ("Queue" )
101
- vbox .pack_start (label , False , False , 0 )
102
110
vbox .pack_start (scroll , True , True , 0 )
103
-
104
111
hbox = Gtk .HBox (spacing = 6 )
105
112
button = Gtk .Button ("Find" )
106
113
hbox .pack_start (button , True , True , 0 )
@@ -112,7 +119,7 @@ def __init__(self):
112
119
hbox .pack_start (button , True , True , 0 )
113
120
vbox .pack_start (hbox , False , False , 0 )
114
121
vbox .set_border_width (6 )
115
- vpane . add1 (vbox )
122
+ notebook . insert_page (vbox , Gtk . Label ( "Queue" ), - 1 )
116
123
117
124
self .periodic_store = Gtk .ListStore (str , int , str , str , str , str , str )
118
125
tree = Gtk .TreeView (self .periodic_store )
@@ -124,11 +131,15 @@ def __init__(self):
124
131
scroll = Gtk .ScrolledWindow ()
125
132
scroll .add (tree )
126
133
vbox = Gtk .VBox (spacing = 6 )
127
- label = Gtk .Label ("Periodic schedule" )
128
- vbox .pack_start (label , False , False , 0 )
129
134
vbox .pack_start (scroll , True , True , 0 )
135
+ hbox = Gtk .HBox (spacing = 6 )
136
+ button = Gtk .Button ("Change period" )
137
+ hbox .pack_start (button , True , True , 0 )
138
+ button = Gtk .Button ("Remove" )
139
+ hbox .pack_start (button , True , True , 0 )
140
+ vbox .pack_start (hbox , False , False , 0 )
130
141
vbox .set_border_width (6 )
131
- vpane . add2 (vbox )
142
+ notebook . insert_page (vbox , Gtk . Label ( "Periodic schedule" ), - 1 )
132
143
133
144
@asyncio .coroutine
134
145
def sub_connect (self , host , port ):
0 commit comments