From eb67d071a551eb97d4759007504dd9597c880509 Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 18 Oct 2008 00:35:59 +0800 Subject: [PATCH] Changed TextBuffer widget over to Entry as it looks nicer, and we dont need multiline text. --- pyfpdb/GuiGraphViewer.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index 58c0cc31..99bade5e 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -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")