Cleaned up the gui some more

This commit is contained in:
Anna Rose 2012-04-16 22:07:07 -04:00
parent 704e7209a6
commit 579b9bc199
2 changed files with 5 additions and 2 deletions

View File

@ -28,6 +28,7 @@ class Pygo():
self.tree=gtk.glade.XML(path_to_skin, "window") self.tree=gtk.glade.XML(path_to_skin, "window")
self.tree.signal_autoconnect(self) self.tree.signal_autoconnect(self)
self.window = self.tree.get_widget('window') self.window = self.tree.get_widget('window')
self.contents = self.tree.get_widget('main_box')
def init_widgets(self): def init_widgets(self):
@ -43,6 +44,8 @@ class Pygo():
self.network_mode = False self.network_mode = False
self.our_color = None self.our_color = None
# fixme: create the go board widget and add it to our box here
def on_net_direct(self, widget): def on_net_direct(self, widget):
print 'stub: Pygo.on_menu_net_direct()' print 'stub: Pygo.on_menu_net_direct()'

View File

@ -5,7 +5,7 @@
<widget class="GtkWindow" id="window"> <widget class="GtkWindow" id="window">
<property name="visible">True</property> <property name="visible">True</property>
<property name="title" translatable="yes">window1</property> <property name="title" translatable="yes">Pygo</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property> <property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property> <property name="modal">False</property>
@ -20,7 +20,7 @@
<property name="urgency_hint">False</property> <property name="urgency_hint">False</property>
<child> <child>
<widget class="GtkVBox" id="vbox1"> <widget class="GtkVBox" id="main_box">
<property name="visible">True</property> <property name="visible">True</property>
<property name="homogeneous">False</property> <property name="homogeneous">False</property>
<property name="spacing">0</property> <property name="spacing">0</property>