Changed TextBuffer widget over to Entry as it looks nicer, and we dont need multiline text.
This commit is contained in:
parent
7833c0c5cd
commit
eb67d071a5
|
@ -45,9 +45,9 @@ class GuiGraphViewer (threading.Thread):
|
|||
try: self.canvas.destroy()
|
||||
except AttributeError: pass
|
||||
|
||||
name=self.nameTBuffer.get_text(self.nameTBuffer.get_start_iter(), self.nameTBuffer.get_end_iter())
|
||||
name=self.nameEntry.get_text()
|
||||
|
||||
site=self.siteTBuffer.get_text(self.siteTBuffer.get_start_iter(), self.siteTBuffer.get_end_iter())
|
||||
site=self.siteEntry.get_text()
|
||||
|
||||
if site=="PS":
|
||||
site=2
|
||||
|
@ -121,21 +121,19 @@ class GuiGraphViewer (threading.Thread):
|
|||
self.settingsHBox.pack_start(self.nameLabel)
|
||||
self.nameLabel.show()
|
||||
|
||||
self.nameTBuffer=gtk.TextBuffer()
|
||||
self.nameTBuffer.set_text("name")
|
||||
self.nameTView=gtk.TextView(self.nameTBuffer)
|
||||
self.settingsHBox.pack_start(self.nameTView)
|
||||
self.nameTView.show()
|
||||
self.nameEntry=gtk.Entry()
|
||||
self.nameEntry.set_text("name")
|
||||
self.settingsHBox.pack_start(self.nameEntry)
|
||||
self.nameEntry.show()
|
||||
|
||||
self.siteLabel = gtk.Label("Site (PS or FTP):")
|
||||
self.settingsHBox.pack_start(self.siteLabel)
|
||||
self.siteLabel.show()
|
||||
|
||||
self.siteTBuffer=gtk.TextBuffer()
|
||||
self.siteTBuffer.set_text("PS")
|
||||
self.siteTView=gtk.TextView(self.siteTBuffer)
|
||||
self.settingsHBox.pack_start(self.siteTView)
|
||||
self.siteTView.show()
|
||||
self.siteEntry=gtk.Entry()
|
||||
self.siteEntry.set_text("PS")
|
||||
self.settingsHBox.pack_start(self.siteEntry)
|
||||
self.siteEntry.show()
|
||||
|
||||
self.showButton=gtk.Button("Show/Refresh")
|
||||
self.showButton.connect("clicked", self.showClicked, "show clicked")
|
||||
|
|
Loading…
Reference in New Issue
Block a user