From: Alex T. <al...@tw...> - 2006-07-17 21:12:22
|
Alex Tweedly wrote: >Brian Debuire wrote: > > > >>Hi everyone... >> >>I wonder... the button problem in the resource editor is a wxPyhton >>problem???? or a Python2.4 problem??? >> >>I noticed this when I migrated to Python2.4... >> >>This is very annoying... >> >>Although... using the layout editor the dialog "You double clicked please >>dont" appears always when trying to click outside a button... >> >> >> Just to explain the background to that "You have double-clicked" message ..... this dialog is put up when the editor gets a mouse event which is from a control, but the co-ordinates that are associated with the event are not within the bounding rectangle of the control. This used to happen around March/April last year, I think it was prior to 0.8.1 being released; and I put in this check and dialog, followed by a return from the handler. It always (then) seemed to happen on the mouseDown immediately after double-clicking on a button (which is not an action that is used for any purpose, just a bad habit I had :-) ), and I eventually found that putting in an empty handler for on_mouseDoubleClick() seemed to fix it - but I left the check/dialog in there anyway. So if I can find out what triggers it, I should be able to either figure out why it's doing it, or perhaps add another empty handler for another event type. So I'd really like to get enough info to be able to reproduce it. I suspect it's not a common occurrence (either that or there are some very tolerant users out there), given the lack of complaints about it. You should be able to reduce the annoyance it causes by simply commenting out the dialog placement from if (not r.Inside(clientPosition)): self.panel.SetFocus() junk = dialog.alertDialog(self, "You double-clicked - please don't", 'a title') return and make it simply if (not r.Inside(clientPosition)): self.panel.SetFocus() ##junk = dialog.alertDialog(self, "You double-clicked - please don't", 'a title') return around line 700 of layoutEditor.py -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 14/07/2006 |