To get the number of screens connected to the computer, I use:
screenNbr = wx.Display.GetCount()
When this works fine on Windows, I'm getting a nasty crash on Linux with this message:
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
(Details: serial 13995 error_code 17 request_code 20 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
I'm using Python 2.7, wxPython 2.8.12 on RedHat 5 (rhel5u6-64).
To get the number of screens connected to the computer, I use:
screenNbr = wx.Display.GetCount()
When this works fine on Windows, I'm getting a nasty crash on Linux with
this message:
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
(Details: serial 13995 error_code 17 request_code 20 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
I'm using Python 2.7, wxPython 2.8.12 on RedHat 5 (rhel5u6-64).
There can be similar errors on Linux if you are using UI objects from a background thread? Are you doing anything like that?
To get the number of screens connected to the computer, I use:
screenNbr = wx.Display.GetCount()
When this works fine on Windows, I'm getting a nasty crash on Linux with
this message:
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
(Details: serial 13995 error_code 17 request_code 20 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
I'm using Python 2.7, wxPython 2.8.12 on RedHat 5 (rhel5u6-64).
There can be similar errors on Linux if you are using UI objects from a background thread? Are you doing anything like that?