Skip to content

Commit

Permalink
Extract addShowGraphButton.
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Skov Midtiby committed Aug 3, 2011
1 parent 9bfdd05 commit e8e50ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/GuiOptionsWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit e8e50ea

Please sign in to comment.