diff options
Diffstat (limited to 'ep_page_gettingstarted.py')
-rw-r--r-- | ep_page_gettingstarted.py | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/ep_page_gettingstarted.py b/ep_page_gettingstarted.py index ab0b473..6a8bce6 100644 --- a/ep_page_gettingstarted.py +++ b/ep_page_gettingstarted.py @@ -52,10 +52,12 @@ Kandid uses a simulated evolution without a fitness function. A cybernetic syste def create_gui(self): """ """ + inner_border = 10 page = gtk.HBox() + page.set_border_width(30) self._widget_list.remember('startHpaned', page) teaserBox = gtk.VBox() - teaserBox.set_border_width(30) + teaserBox.set_border_width(inner_border) try: image_file = ka_widget.KandidWidget.get_introimage_path() \ @@ -68,9 +70,24 @@ Kandid uses a simulated evolution without a fitness function. A cybernetic syste (sys.exc_info()[0], sys.exc_info()[1])) traceback.print_exc(file=sys.__stderr__) page.pack_start(teaserBox, expand=False, fill=False) + + controlBox = gtk.VBox() + controlBox.set_border_width(inner_border) + controlBox.pack_start(gtk.Label(''), expand=True, fill=True) + readintroLinkbutton = gtk.Button('') + readintroLinkbutton.set_label(_('Read the Introduction')) + self._widget_list.remember('readintroLinkbutton', readintroLinkbutton) + controlBox.pack_start(readintroLinkbutton, expand=False, fill=False) + + controlBox.pack_start(gtk.Label(''), expand=True, fill=True) + startnewLinkbutton = gtk.Button('') + startnewLinkbutton.set_label(_('Show image population')) + self._widget_list.remember('startnewLinkbutton', startnewLinkbutton) + controlBox.pack_start(startnewLinkbutton, expand=False, fill=False) + teaserBox.pack_start(controlBox, expand=False, fill=False) textBox = gtk.VBox() - textBox.set_border_width(30) + textBox.set_border_width(inner_border) scrolled_window = gtk.ScrolledWindow(hadjustment=None, vadjustment=None) self._widget_list.remember('start_scrolledwindow', scrolled_window) scrolled_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) @@ -80,22 +97,11 @@ Kandid uses a simulated evolution without a fitness function. A cybernetic syste textview.set_editable(False) textview.set_left_margin(10) textview.set_right_margin(10) + textview.set_border_width(3) + textview.set_sensitive(False) scrolled_window.add(textview) textBox.pack_start(scrolled_window, expand=True, fill=True) page.pack_start(textBox, expand=True, fill=True) - - controlBox = gtk.VBox() - controlBox.set_border_width(30) - readintroLinkbutton = gtk.LinkButton('') - readintroLinkbutton.set_label(_('Read the Introduction')) - self._widget_list.remember('readintroLinkbutton', readintroLinkbutton) - controlBox.pack_start(readintroLinkbutton, expand=False, fill=False) - - startnewLinkbutton = gtk.LinkButton('') - startnewLinkbutton.set_label(_('Show image population')) - self._widget_list.remember('startnewLinkbutton', startnewLinkbutton) - controlBox.pack_start(startnewLinkbutton, expand=False, fill=False) - page.pack_start(controlBox, expand=False, fill=False) return page, gtk.Label(_('Getting started')) |