@@ -84,11 +84,11 @@ def __delitem__(self, key):
84
84
class SchedulerWindow (Gtk .Window ):
85
85
def __init__ (self ):
86
86
Gtk .Window .__init__ (self , title = "Scheduler" )
87
- self .set_border_width (10 )
88
- self .set_default_size (730 , 520 )
87
+ self .set_border_width (6 )
88
+ self .set_default_size (720 , 570 )
89
89
90
90
vpane = Gtk .VPaned ()
91
- vpane .set_position (220 )
91
+ vpane .set_position (270 )
92
92
self .add (vpane )
93
93
94
94
self .queue_store = Gtk .ListStore (int , str , str , str , str )
@@ -100,7 +100,23 @@ def __init__(self):
100
100
tree .append_column (column )
101
101
scroll = Gtk .ScrolledWindow ()
102
102
scroll .add (tree )
103
- vpane .add1 (scroll )
103
+ vbox = Gtk .VBox (spacing = 6 )
104
+ label = Gtk .Label ("Queue" )
105
+ vbox .pack_start (label , False , False , 0 )
106
+ vbox .pack_start (scroll , True , True , 0 )
107
+
108
+ hbox = Gtk .HBox (spacing = 6 )
109
+ button = Gtk .Button ("Find" )
110
+ hbox .pack_start (button , True , True , 0 )
111
+ button = Gtk .Button ("Move up" )
112
+ hbox .pack_start (button , True , True , 0 )
113
+ button = Gtk .Button ("Move down" )
114
+ hbox .pack_start (button , True , True , 0 )
115
+ button = Gtk .Button ("Remove" )
116
+ hbox .pack_start (button , True , True , 0 )
117
+ vbox .pack_start (hbox , False , False , 0 )
118
+ vbox .set_border_width (6 )
119
+ vpane .add1 (vbox )
104
120
105
121
self .periodic_store = Gtk .ListStore (str , int , str , str , str , str , str )
106
122
tree = Gtk .TreeView (self .periodic_store )
@@ -111,7 +127,12 @@ def __init__(self):
111
127
tree .append_column (column )
112
128
scroll = Gtk .ScrolledWindow ()
113
129
scroll .add (tree )
114
- vpane .add2 (scroll )
130
+ vbox = Gtk .VBox (spacing = 6 )
131
+ label = Gtk .Label ("Periodic schedule" )
132
+ vbox .pack_start (label , False , False , 0 )
133
+ vbox .pack_start (scroll , True , True , 0 )
134
+ vbox .set_border_width (6 )
135
+ vpane .add2 (vbox )
115
136
116
137
@asyncio .coroutine
117
138
def sub_connect (self , host , port ):
0 commit comments