From 552bf254a8593a595c117f3a6401630c3391f8f6 Mon Sep 17 00:00:00 2001 From: Ryan Campbell Date: Sun, 18 Apr 2010 23:38:06 -0600 Subject: [PATCH 1/1] building the character sheet, including figuring out which character was selected --- ui/fremantle/ui.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ui/fremantle/ui.py b/ui/fremantle/ui.py index c52d4c4..f4aab76 100644 --- a/ui/fremantle/ui.py +++ b/ui/fremantle/ui.py @@ -56,6 +56,24 @@ class mEveMonUI(): print treeview print path print view_column + win = hildon.StackableWindow() + + 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): -- 1.7.9.5