Problems displaying dialogs on Fedora Core2

This thread provides a workaround that worked for me .....

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mss:30268:200407:oceebeg
olcbjmmcpiccb

Regards

Duncan

···

-----Original Message-----
From: Ed Leafe [mailto:ed@leafe.com]
Sent: Monday, July 26, 2004 3:25 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Problems displaying dialogs on Fedora
Core2

On Jul 24, 2004, at 8:58 PM, Ed Leafe wrote:

  I recently upgraded my machine to Fedora Core 2. I installed a

fresh

copy of python 2.3.3 from source, and built wxPython as I had before,
following the instruction in BUILD.txt. Most of wxPython works fine;
however, when I try to display a File dialog, I get the following
error:

Traceback (most recent call last):
  File "FieldSpecEditor.py", line 101, in ?
    form = FieldEditorForm(None)
  File "FieldSpecEditor.py", line 33, in __init__
    openDlg = wx.FileDialog(None, "Select a file...",
wildcard=wildcard, defaultDir=os.getcwd(), style=wx.SAVE ) #|
wx.HIDE_READONLY)
  File "/home/ed/dls/wxPythonSrc-2.5.1.5/wxPython/wx/windows.py", line

2105, in __init__
    newobj = _windows.new_FileDialog(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "m_pLine == 0" failed in
../src/common/fileconf.cpp(1295)

  Any idea what's going on here?

  More information: I ran the demo.py file, and upon launching, I
get
this error message:

(demo.py:3789): Gdk-WARNING **: gdkdrawable-x11.c:912 drawable is not a
pixmap or window

  If I click on, say, the 'RadioBox' entry under 'Core
Windows/Controls', I get a whole slew of lines, with the same message
repeated several times. The lines are one of the following:

(demo.py:3789): Gtk-CRITICAL **: file gtkwidget.c: line 2221
(gtk_widget_realize): assertion `GTK_WIDGET_ANCHORED (widget) ||
GTK_IS_INVISIBLE (widget)' failed

(demo.py:3789): Gdk-CRITICAL **: file gdkwindow-x11.c: line 1241
(gdk_window_show): assertion `GDK_IS_WINDOW (window)' failed

(demo.py:3789): Gtk-CRITICAL **: file gtkwidget.c: line 6429
(gtk_widget_real_map): assertion `GTK_WIDGET_REALIZED (widget) == TRUE'
failed

(demo.py:3789): Gdk-CRITICAL **: file gdkwindow.c: line 2180
(gdk_window_invalidate_rect): assertion `window != NULL' failed

(demo.py:3789): Gdk-CRITICAL **: file gdkwindow.c: line 2262
(gdk_window_invalidate_maybe_recurse): assertion `window != NULL'
failed

  One thing I'm thinking is that this new Fedora Core 2 install
uses
X11.org instead of XFree86 - could this be the source of the
inconsistency?

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://dabodev.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org