You cannot post messages because only members can post, and you are not currently a member.
Description:
For users of the wxPython toolkit to discuss how to use the library and to assist each other with questions.
|
|
|
Error catching in wx.html2 window
|
| |
I'm using a wx.html2 (wx2.9) window to show an HTML help file. This works fine, but I can't figure out how to catch any errors. It's possible that the user might get a site-down or 404 error. Is there a way to catch these errors? (Or any more detailed information on the new html2 control?) In the attached code, I'd hoped OnError would be called and would raise an... more »
|
|
I have error 3 try to open any file in my application!
|
| |
I'm trying to open files the issue is that the path or root directory
is not found
here some of code
if self.dlg.ShowModal() == wx.ID_OK:
self.filename = self.dlg.GetFilename()
self.dirname = self.dlg.GetDirectory()
path = open(os.path.join(self.dirname , self.filename))... more »
|
|
Mac-noob advice for installing
|
| |
I'm helping a friend at a distance set up a Python/wxPython (and other
libraries) environment on his Mac (OSX Lion)...he was able to get
wxPython to work using the Mac-installed version of Python but it
might be balking now for Matplotlib, so I'm going to suggest he
install the Python.org version of Python 2.7.3 and try again.... more »
|
|
Select() for ListCtrl not same as mouse-click-select?
|
| |
I have a ListCtrl (REPORT_MODE and SINGLE_SEL). The user can click in this to highlight an entry in it and it appears reversed. There are times where I want to change the selected entry programmatically. I can do this with: across_clues.Focus(idx) across_clues.Select(idx) (the Focus() makes sure the selected item is currently scrolled to; the... more »
|
|
Interrupting computation
|
| |
Guys,
I know this is a topic for the Python list, not the wxPython, but you guys are so ressourceful that I dare submitting my problem to you.
As in most of the software, an 'Cancel computation' button is required and I have trouble to make it work clean.
Here is how my application works. The Cancel computation button is, of... more »
|
|
TwoStageCreation Initialization
|
| |
Hello, I'm trying to add a custom listcontrol to an XRC dialog following the TwoStageCreation <[link]> description in the wiki. As suggested in the example, I am adding columns to my control in the wx.EVT_WINDOW_CREATE handler. However, I don't understand at which point I can safely use the created... more »
|
|
Mouse middle button has strange effect in grids
|
| |
The middle button seems to have a strange effect in grids. In particular, if I
hold it down it creates a visual selection of cells, like a range selection, but
that does not trigger a EVT_GRID_RANGE_SELECT event.
What I would like to do is that my grid completely ignores all click events on
the middle button. I have tried to catch EVT_MIDDLE_DOWN, EVT_MIDDLE_UP,... more »
|
|
Momentary button
|
| |
Am I right in thinking that wxButton cannot bind in a momentary fashion,
ie trigger an event when the mouse button is pressed (on the button),
and another when it is released? I have tried to bind it using
wx.EVT_LEFT_DOWN, but the event is not triggered. I get the feeling
that the only event that can be detected is that the mouse button has... more »
|
|
Setting Focus to Grid when Clicking on Grid Label
|
| |
Hi wxPython users: I'm not sure if this is a feature, or a bug. I have a Grid control and TextCtrl on the same panel. I expect the focus to shift to the Grid control when the user clicks on a row or column label, but it does not. Keyboard operations are still directed to the last active control, which is a... more »
|
|
dc.DrawText performance issues
|
| |
I'm drawing a network graph with wx.PaintDC. For each link in my graph
I draw the source and destination port numbers on a box over the link
30pixels away from the endpoints. This works fine when I'm only
drawing the ports for a single link, but when I draw the ports for all
of the links (I'm testing on tree with 12 links) I get a major... more »
|
|
|