Hello
I wrote a while ago with this problem, but I didn't have my system
configured properly. Now I believe I do, and the problem still exists.
I am running Debian (Sid) with
Python2.3
python2.3-gnome2 1.99.13
python2.3-glade2 1.99.13
python2.3-gtk2 1.99.13
I have a glade file that uses
John Hunter wrote:
I have a problem that has cropped up in a couple of different
circumstances.
1) I have a GtkDialog above my GtkWindow and I want to drag it off to
the side of the main window to use some controls in the dialog.
The draq across the window triggers a large number of
James == James Henstridge [EMAIL PROTECTED] writes:
James There are two answers to this question.
James First the simple one: use GTK 2.0 and pygtk-1.99.x. With
Thanks much. I took the idle handler suggestion for a quick fix, and
will begin the gtk 2.0 upgrade in the near future when
Werner Hartnagel wrote:
Hi,
I'll try to compile the recent pygtk-0.6.11 with Mandrake9.
configure tell me he found the importend libs but
when I try to compile, the file libGL.la is still missing.
I have only the following files in my /usr/X11R6/lib/ folder:
ls /usr/X11R6/lib/libGL*
Jay Graves wrote:
Hello
I wrote a while ago with this problem, but I didn't have my system
configured properly. Now I believe I do, and the problem still exists.
I am running Debian (Sid) with
Python2.3
python2.3-gnome2 1.99.13
python2.3-glade2 1.99.13
python2.3-gtk2 1.99.13
I have a
Yes. If you are using GNOME widgets in your glade interface, you must
initialise GNOME. Add the following to the startup of your program:
import gnome.ui
gnome.init('program-name', 'version')
Thanks a ton, works like a charm now.
--
Jay Graves
[EMAIL PROTECTED]
jay.skabber.com
I am knee deep in migrating my code to gtk2. I have a lot of code
like:
def draw(self, widget):
win = widget.window
gc = win.new_gc()
gc.foreground = self.grey
widget.draw_rectangle(gc, gtk.TRUE,
0, 0, self.width, self.height)
Can someone advise me if there is a simple change I can make within
this function to get a Drawable instance? Or is a more fundamental
change required?
widget.window is a GdkWindow which inherits from GdkDrawable.
So just do:
widget.window.draw_rectangle(gc, gtk.TRUE,
Johan == Johan Dahlin [EMAIL PROTECTED] writes:
Johan So just do:
Johan widget.window.draw_rectangle(gc, gtk.TRUE, 0, 0,
Johan self.width, self.height)
Wonderful.
And for the next miracle: set_clip_rectangle now wants a rectangle
instead of four coordinates. I tried passing a
gc.set_clip_rectangle(
gdk.Rectangle(self._left, self._top,
self._width, self._height))
Pass in a tuple instead, like this:
gc.set_clip_rectangle((self._left, self._top,
self._width, self._height))
It's part of
Johan == Johan Dahlin [EMAIL PROTECTED] writes:
Johan gc.set_clip_rectangle((self._left, self._top, self._width,
Johan self._height))
Excellent -- my main window in now rendering. I'm getting there.
If you can solve this one, I'll call you a genius and leave you alone
for the day.
I
I have checked in wrappers for the glib timeout, idle and IO event
handling functions into pygtk, and removed the (deprecated) gtk
equivalents. I have left in compatibility names, so no programs should
break. This change gets rid of the last use of the strongly deprecated
GtkArg and
12 matches
Mail list logo