Re: [pygtk] GLIb IO Channels
Johannes> Is there a replacement for gtk_input_add_full ? Not that I'm aware of. As of gtk 1.3.12 it's there and present in PyGtk: >>> gtk.gtk_version (1, 3, 12) >>> gtk.input_add_full I see no indication in the reference man page at http://developer.gnome.org/doc/API/2.0/gtk/gtk-general.html#GTK-INPUT-ADD-FULL that it's deprecated either. Johannes> Or is gtk_input_add_full in opposite to the gdk version not Johannes> depricated ? I believe it's safe to use... -- Skip Montanaro ([EMAIL PROTECTED] - http://www.mojam.com/) ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] ANNOUNCE: pygtk 0.6.9 and gnome-python 1.4.2
New releases of pygtk and gnome-python on the stable branch are now available: ftp://ftp.gtk.org/pub/gtk/python/pygtk-0.6.9.tar.gz ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-python/gnome-python-1.4.2.tar.gz As with previous stable releases, the gnome-python package includes a copy of pygtk (note that for development versions of gnome-python you need to install pygtk separately). It is recommended that all users of stable pygtk or gnome-python upgrade to this release. As well as many bug fixes, this release also has some modifications to the code generator that catch a number of NULL returns. This makes pygtk handle some error conditions better (returning None rather than crashing the interpreter by dereferencing a NULL pointer). Also, the build system has been updated to use autoconf-2.52 and automake-1.5. This means that a beta version of automake is no longer needed to build from cvs, and should give easier to debug errors when people have trouble configuring pygtk. For people working with the development gtk and gnome platforms, the latest snapshots of pygtk and gnome-python are available at: ftp://ftp.gnome.org/pub/GNOME/earthquake/sources/pygtk/pygtk-1.99.6.tar.gz ftp://ftp.gnome.org/pub/GNOME/earthquake/sources/gnome-python/gnome-python-1.99.6.tar.gz James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] `GtkDialogFlags' is not an enum type
Will be fixed in cvs in a few minutes. Matt On Thu, Jan 03, 2002 at 09:31:10AM -0600, Skip Montanaro wrote: > > I've been away from the Gtk 1.3 release cycles for a month or two. Upon > returning to it yesterday, I got this new warning: > > `GtkDialogFlags' is not an enum type > > Is this something I need to worry about or will it go away on its own as new > versions of PyGtk are released that accommodate some new Gtk 1.3 API change? > > Thx, > > Skip > > ___ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] `GtkDialogFlags' is not an enum type
I've been away from the Gtk 1.3 release cycles for a month or two. Upon returning to it yesterday, I got this new warning: `GtkDialogFlags' is not an enum type Is this something I need to worry about or will it go away on its own as new versions of PyGtk are released that accommodate some new Gtk 1.3 API change? Thx, Skip ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] Strange window-icon
Hello again all I'm trying to set the window-icon by using: pix, mask = create_pixmap_from_xpm(self, None, "icon.xpm") self.set_icon(pix,mask) where self is the window, but instead of the icon I get a bunch of lines and dots in different colours, although sometimes, it looks allright. What's going on? Should I use a different method for setting the icon or what? ANY help is MUCH appreciated. Christian Storgaard / Cybolic - [EMAIL PROTECTED] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] GLIb IO Channels
Hi, Is there a replacement for gtk_input_add_full ? gdk_input_add_full seams to be depricated. Are there any plans for wrapping GIOChannels ? Or is gtk_input_add_full in opposite to the gdk version not depricated ? Johannes PS: Sorry for the bad english. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] Strange error.
Dear all, I'm writing a tar, cdrecord, mkisofs front-end using PyGtk starting from eroaster program from sourceforge. I have to create a temporary directory to copy some data (no problem using os.mkdir), but if the directory exist, the program must remove it. During the execution I have the following error: output=commands.getoutput('rm -rf %s' % self.CDR_multi) File "/usr/lib/python1.5/commands.py", line 42, in getoutput return getstatusoutput(cmd)[1] File "/usr/lib/python1.5/commands.py", line 52, in getstatusoutput text = pipe.read() IOError: [Errno 4] Interrupted system call I have the same error if I use popen2.popen2('rm -rf %s' % self.CDR_multi). Some suggestion? I use RH7.2 with python 1.5. -- \\\ // (0 0) ooO-(_)-Ooo--- ##=# | ENRICO MORELLI | email: [EMAIL PROTECTED] | | * * * *| phone: +39 055 4574269 | | University of Florence| fax : +39 055 4574253 | | CERM - via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY| ##=# ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] python2, gtk 0.6.8 & GdkColor
Martin Preishuber wrote: >Hi all, > >I try to change the background color and therefor I create a GdkColor >instance. With python 1.5 that works as expected, with python 2.1.1 I >get some errors when using parameters > 32767. Usually >GdkColor(65535, 65535, 65535) should be white so I can make any bright >colors with that restriction. The error I get is > >return _gtk.gdk_color_new(red, green, blue, pixel) >OverflowError: signed short integer is greater than maximum > This problem is fixed in CVS, but you shouldn't be using this function (it now prints a warning). Instead, use the alloc() method of a GdkColormap object (you can get the colormap used by a widget with its get_colormap() method). James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] python2, gtk 0.6.8 & GdkColor
Hi all, I try to change the background color and therefor I create a GdkColor instance. With python 1.5 that works as expected, with python 2.1.1 I get some errors when using parameters > 32767. Usually GdkColor(65535, 65535, 65535) should be white so I can make any bright colors with that restriction. The error I get is return _gtk.gdk_color_new(red, green, blue, pixel) OverflowError: signed short integer is greater than maximum any ideas ? Martin -- Martin Preishuber - IT Expert, Student, SysAdmin http://www.eclipt.at, mailto:[EMAIL PROTECTED] Make a wish, it might come true. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk