Browse files

Extract addShowGraphButton.

  • Loading branch information...
1 parent 9bfdd05 commit e8e50ea07fa17cde8e893851b5926f49b959657d Henrik Skov Midtiby committed Aug 3, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/GuiOptionsWindow.py
View
9 src/GuiOptionsWindow.py
@@ -29,11 +29,9 @@ def __init__(self, maxCitations=50, maxReferences=50):
self.hscrollbarCitations = gtk.HScale(self.adjMinNumberOfCitations)
self.hscrollbarCitations.set_digits(0)
self.hscrollbarCitations.set_value_pos(gtk.POS_LEFT)
- self.showgraphbutton = gtk.Button("Show graph")
labelReferences = gtk.Label("Number of references")
labelCitations = gtk.Label("Number of citations")
self.labelGraphSize = gtk.Label("Graph size: nodes")
- self.showgraphbutton.show()
labelReferences.show()
labelCitations.show()
self.labelGraphSize.show()
@@ -44,12 +42,17 @@ def __init__(self, maxCitations=50, maxReferences=50):
self.vbox.pack_start(labelCitations, True, True, 0)
self.vbox.pack_start(self.hscrollbarCitations, True, True, 0)
self.vbox.pack_start(self.labelGraphSize, True, True, 0)
- self.vbox.pack_start(self.showgraphbutton, True, True, 0)
+ self.addShowGraphButton()
self.addExportGraphButton()
self.addListOfNodesButton()
self.vbox.show()
searchoptionswindow.show()
+ def addShowGraphButton(self):
+ self.showgraphbutton = gtk.Button("Show graph")
+ self.showgraphbutton.show()
+ self.vbox.pack_start(self.showgraphbutton, True, True, 0)
+
def addExportGraphButton(self):
self.exportgraphbutton = gtk.Button("Export graph")
self.exportgraphbutton.show()

0 comments on commit e8e50ea

Please sign in to comment.