On Fri, 7 May 2004 08:59:59 +0200 "Maik Hertha" <[EMAIL PROTECTED]> wrote:
:> Date: Thu, 6 May 2004 17:28:20 +1000
:> From: Bob Hepple <[EMAIL PROTECTED]>
:> Subject: Re: [pygtk] segmentation fault after using clipboard
:> To: [EMAIL PROTECTED]
:> Message-ID: <[EMAIL PROTECTED]>
:> Content-Type: text/plain; charset="us-ascii"
:> :> Just to narrow it down a bit, it's the
:> gtk.gdk.Display(os.environ["DISPLAY"]) call that causes the problem.
:> :> Anyone with an idea?
:> Why setting the DISPLAY explicit? PyGtk initializes itself with the current
DISPLAY otherwise it fails.
Dear Maik,
OK - I understand - but can you tell me, please, how do I reference the
one created in the initialization?
Try the gtk.gdk.display_get_default() function:
http://www.moeraki.com/pygtkreference/pygtk2reference/class-gdkdisplay.html#function-gdk--display-get-default
John
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
