Re: [pygtk] how to parse gkeyfile
El lun, 09-06-2008 a las 11:59 +1200, John Stowers escribió: On Tue, 2008-06-03 at 18:28 -0400, Felipe Reyes wrote: hi everybody, Currently I have an application written in C that stores some configuration information in a GKeyFile, and now I have a write another application that need some information that is in that file, but I don't find the bindings for GKeyFile in pygtk, so those functions are present to be used from python?. You could also use the build in python ConfigParser library if you wish. nice1 :) thanks, I'm gonna test if reads without troubles my existing configuration files, because ConfigParser uses ';' for the begin of comments, and GKeyFile uses ';' like the separator of a list of values, so I'll see if I can change that behaviour. thanks a lot guys happy hacking. -- Felipe Reyes Astorga counter.li.org #316380 signature.asc Description: Esta parte del mensaje está firmada digitalmente ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] A friend wants to Share Favorites with you
StumbleUpon Discover new web sites Catafest wants to Share Favorites with you Likes 1 page Join StumbleUpon for Free and discover your friends' Favorites. Suddenly the Web is fun again :) Discover my Favorites http://www.stumbleupon.com/redirect.php?t=ju=8700570d=http%3A%2F%2Fwww.stumbleupon.com%2Fjoin.php%3Ffriend%3D5529397%26emailcode%3Dsm1o64aefmbbofnvl=2c=sm1o64aefmbbofnv -catafest [EMAIL PROTECTED] p.s. If you're new to StumbleUpon, try the demo http://www.stumbleupon.com/redirect.php?t=ju=8700570d=http%3A%2F%2Fwww.stumbleupon.com%2Fdemo%2F%3Ffriend%3D5529397l=5c=sm1o64aefmbbofnv for yourself :) About StumbleUpon Channel surf the internet with StumbleUpon! Discover great web content recommended by your friends and like-minded stumblers by just clicking the Stumble! button - learn more http://www.stumbleupon.com/redirect.php?t=ju=8700570l=3c=sm1o64aefmbbofnv . If you do not wish to receive e-mails sent by your friends via StumbleUpon, please click here http://www.stumbleupon.com/redirect.php?t=ju=8700570d=http%3A%2F%2Fwww.stumbleupon.com%2Fnotifications.php%3Femailcode%3Dsm1o64aefmbbofnvl=4c=sm1o64aefmbbofnv . (c) StumbleUpon 2001-2008 ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Segfault importing gtk within distutils / unittest
Hi, I've programmed a custom distutils command to run my unit tests. The important part looks like this: def __runTests(self): ''' Runs all unit tests found in the folder 'test'. ''' print --- start run tests # append the build path to the pythonpath sys.path.append(self.__buildDir) # append test path to pythonpath sys.path.append(os.path.join(os.getcwd(), test)) testFiles = self.__findTestModules() print --- before load tests tests = TestLoader().loadTestsFromNames(testFiles) print --- after load tests t = TextTestRunner(verbosity = 1) t.run(tests) As you can see, I've added a few print statements to explain my problem. Now a part of my system uses pygtk and is used by one of the unit tests that are being loaded in the code above. The module using pygtk works without problem - but not within the unit tests. There I get a segmentation fault while importing gtk. The import at the top of that module looks like this: print --- before import pygtk import pygtk print --- after import pygtk pygtk.require('2.0') print --- after require import gtk print --- after import pygtk Running the tests I get this output: --- start run tests --- before load tests --- before import pygtk --- after import pygtk --- after require Segmentation fault What could be the problem? Running python 2.4 on Gentoo Linux with pygtk 2.12.0 Thanks in advance. Johannes signature.asc Description: OpenPGP digital signature ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Accessing List of Drives
Is there a good way to get a comprehensive list of all the drives on a machine? (i.e. C:/, D:/, E:/, F:/, etc) PyGTK's file selection window displays all of them I believe, so there must be a way without using some massive packages like pywin32 or whatever it's called. I'm working on developing a revolutionary new file manager that utilizes, among other things, mouse-over exploring. If need be, the first release could be restricted to the drive the software is installed to, though that might severely limit the software. I would like to eventually be able to explore all drives. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] wnck.window.set_geometry() misbehaving
It turns out that set_geometry() does not place windows as specified because it does not take window decorations, etc., into account: http://bugzilla.gnome.org/show_bug.cgi?id=518606 A fix has been coded - I am awaiting release of same before going back to my window tiling app. J. On Sun, 2008-06-08 at 00:56 +0200, Gian Mario Tagliaretti wrote: On Tue, Jun 3, 2008 at 6:50 AM, Jason Grant [EMAIL PROTECTED] wrote: Hi Jason, I understand this is the pygtk list but am hoping for tips on use of wnck via python - after looking at the source of gnome-python-desktop, I'm not sure where else to go for gnome-python discussion. I think this is the best place too. I'm writing my first python program - my aim is to implement some window tiling support for gnome. After calculating window positions, I invoke wnck.window.set_geometry(), however the windows are not being placed according to the supplied x,y,width,height - see output code below. I think a minimal example that shows the problem will be a great help in trying to help you :) Anyway the bindings for this function are not being manually wrapped, so it's really weird. cheers ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/