More work on native user interface
This commit is contained in:
+1169
-878
File diff suppressed because it is too large
Load Diff
@@ -84,6 +84,12 @@ class Frontend():
|
||||
#viewport.height = 240
|
||||
#self._svg.render_document(ctx, viewport)
|
||||
|
||||
# prepare lists
|
||||
self.lst_user = Gtk.ListStore(int, str)
|
||||
db.cur.execute("SELECT userid, login FROM user ORDER BY login")
|
||||
for row in db.cur.fetchall():
|
||||
self.lst_user.append(row)
|
||||
|
||||
def run(self):
|
||||
self.label['vessel'].set_text(self.vname)
|
||||
self.window.show_all()
|
||||
@@ -96,6 +102,14 @@ class Frontend():
|
||||
for row in db.cur.fetchall():
|
||||
print(row)
|
||||
|
||||
def on_stk_companies_notify(self, stack, param):
|
||||
print("Stack notify")
|
||||
print(stack, param)
|
||||
|
||||
def on_ntb_modules_switch_page(self, notebook, page, page_num):
|
||||
print("Neue Seite:", page_num)
|
||||
# TODO here re-load lists
|
||||
|
||||
def on_but_equip_detail_clicked(self, widget):
|
||||
self.stack['equipment'].set_visible_child(self.box['equip_detail'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user