[Python-checkins] r43398 - sandbox/trunk/welease/README.txt sandbox/trunk/welease/welease.py

anthony.baxter python-checkins at python.org
Tue Mar 28 13:24:17 CEST 2006


Author: anthony.baxter
Date: Tue Mar 28 13:24:16 2006
New Revision: 43398
Modified:
 sandbox/trunk/welease/README.txt
 sandbox/trunk/welease/welease.py
Log:
finally found the gtk magic to make the output window different
Modified: sandbox/trunk/welease/README.txt
==============================================================================
--- sandbox/trunk/welease/README.txt	(original)
+++ sandbox/trunk/welease/README.txt	Tue Mar 28 13:24:16 2006
@@ -5,4 +5,9 @@
 I doubt it will work worth a damn (It needs GNU tar, and a sane operating
 system)
 
+Requirements:
+ python-gtk (unsure which version - something vaguely recent should be ok)
+ twisted 2.1 or later
+ GNU tar (with bzip2 support)
+
 -- Anthony
Modified: sandbox/trunk/welease/welease.py
==============================================================================
--- sandbox/trunk/welease/welease.py	(original)
+++ sandbox/trunk/welease/welease.py	Tue Mar 28 13:24:16 2006
@@ -83,14 +83,14 @@
 gtk.glade.textdomain(domain)
 self.xml = gtk.glade.XML("welease.glade", None, gettext.textdomain())
 self.xml.signal_autoconnect(self)
- self.xml.get_widget('weleaseMainWindow').show_all()
+ win = self.xml.get_widget('weleaseMainWindow')
 output = self.xml.get_widget("outputText")
- attr = output.get_default_attributes()
- style = output.rc_get_style()
- #print style, dir(style)
- #print dir(style.fg), style.bg, style.get_font()
+ state = gtk.STATE_NORMAL
+ output.modify_base(state, gtk.gdk.Color(10000,10000,10000))
+ output.modify_text(state, gtk.gdk.Color(20000,65535,20000))
 self.logger = TextViewer(output)
 self.logger.set_visible(self.xml.get_widget('textscroll'))
+ win.show_all()
 
 def warnPopup(self, message, fatal=True, d=None):
 if d is None: print "**", message


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /