Merge branch 'master' into two-sites

This commit is contained in:
Worros 2008-10-18 00:47:31 +08:00
commit 87af99847b

View File

@ -45,9 +45,9 @@ class GuiGraphViewer (threading.Thread):
try: self.canvas.destroy() try: self.canvas.destroy()
except AttributeError: pass 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": if site=="PS":
site=2 site=2
@ -121,21 +121,19 @@ class GuiGraphViewer (threading.Thread):
self.settingsHBox.pack_start(self.nameLabel) self.settingsHBox.pack_start(self.nameLabel)
self.nameLabel.show() self.nameLabel.show()
self.nameTBuffer=gtk.TextBuffer() self.nameEntry=gtk.Entry()
self.nameTBuffer.set_text("name") self.nameEntry.set_text("name")
self.nameTView=gtk.TextView(self.nameTBuffer) self.settingsHBox.pack_start(self.nameEntry)
self.settingsHBox.pack_start(self.nameTView) self.nameEntry.show()
self.nameTView.show()
self.siteLabel = gtk.Label("Site (PS or FTP):") self.siteLabel = gtk.Label("Site (PS or FTP):")
self.settingsHBox.pack_start(self.siteLabel) self.settingsHBox.pack_start(self.siteLabel)
self.siteLabel.show() self.siteLabel.show()
self.siteTBuffer=gtk.TextBuffer() self.siteEntry=gtk.Entry()
self.siteTBuffer.set_text("PS") self.siteEntry.set_text("PS")
self.siteTView=gtk.TextView(self.siteTBuffer) self.settingsHBox.pack_start(self.siteEntry)
self.settingsHBox.pack_start(self.siteTView) self.siteEntry.show()
self.siteTView.show()
self.showButton=gtk.Button("Show/Refresh") self.showButton=gtk.Button("Show/Refresh")
self.showButton.connect("clicked", self.showClicked, "show clicked") self.showButton.connect("clicked", self.showClicked, "show clicked")