1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| self.win = gtk.Dialog(title, None,gtk.DIALOG_NO_SEPARATOR)
self.win.set_resizable(True)
self.win.set_title("Fields organisation")
vbox = gtk.VBox(False, 5)
self.win.vbox.pack_start(vbox, True, True, 0)
label = gtk.Label("Select the fields where a new line is required")
vbox.pack_start(label, True, True, 2)
combo = gtk.combo_box_new_text()
vbox.pack_start(combo, True, True, 2)
combo.append_text('Select a panel :')
combo.append_text('Points)
combo.append_text('Sectors')
scrolled_window = gtk.ScrolledWindow()
self.win.vbox.pack_start(scrolled_window, True, True, 0)
scrolled_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_ALWAYS)
table = gtk.Table(len(self.L_BUTTONS), False)
scrolled_window.add_with_viewport(table)
for i in range(len(self.L_BUTTONS)):
button = gtk.CheckButton(self.L_BUTTONS[i])
table.attach(button, 0, 1,i, i+1)
hbox = gtk.HBox(False, 0)
self.win.vbox.pack_start(hbox, False, True, 0)
button_save = gtk.Button(stock=gtk.STOCK_SAVE)
button_close = gtk.Button(stock=gtk.STOCK_CLOSE)
hbox.pack_start(button_save, True, True, 0)
hbox.pack_start(button_close, True, True, 0) |
Partager