def __init__(self, controller):
self.controller = controller
-
gtk.set_application_name("mEveMon")
#create the main window
win.show_all()
def build_window(self, treeview, path, view_column):
- print "triggered treeview"
- print treeview
- print path
- print view_column
+ win = hildon.StackableWindow()
+
+ # Create menu
+ # NOTE: we probably want a window-specific menu for this page, but the
+ # main appmenu works for now
+ menu = self.create_menu(win)
+ # Attach menu to the window
+ win.set_app_menu(menu)
+
+ model = treeview.get_model()
+ miter = model.get_iter(path)
+
+ # column 0 is the portrait, column 1 is name
+
+ char_name = model.get_value(miter, 1)
+
+ win.set_title(char_name)
+
+ label = gtk.Label("This is a subview with information about %s" % char_name)
+
+ vbox = gtk.VBox(False, 0)
+ vbox.pack_start(label, True, True, 0)
+
+ win.add(vbox)
+ win.show_all()
def create_char_model(self):
if result == gtk.RESPONSE_OK:
self.controller.set_api_key(apiEntry.get_text())
self.controller.set_uid(uidEntry.get_text())
+ self.controller.set_auth()
self.update_model(self.char_model)
+
dialog.destroy()