I have been playing with the PlateButtons in the wxpython demo. I am
running on Linux/GTK, which may be important. The drop-down arrow of the
plate buttons is drawn immediately to the right of the text label and
there is space to the right of the arrow. The arrow click event is fired
when I click on the right hand side of the button. This can actually be
quite far from the arrow, depending on the length of the label. How can
I remove the extra space on the right hand side of the plate button so
that the arrow click event is fired when actually clicking on the arrow
rather than the blank space?
I have been playing with the PlateButtons in the wxpython demo. I am
running on Linux/GTK, which may be important. The drop-down arrow of the
plate buttons is drawn immediately to the right of the text label and
there is space to the right of the arrow. The arrow click event is fired
when I click on the right hand side of the button. This can actually be
quite far from the arrow, depending on the length of the label. How can
I remove the extra space on the right hand side of the plate button so
that the arrow click event is fired when actually clicking on the arrow
rather than the blank space?
There shouldn't be much more than a few pixels to the right side of
the button. If there is more than that I would consider it a bug.
Please create a minimal sample that reproduces it and attach a bug
report with your platform information to http://code.google.com/p/editra/issues/list
Thanks,
Cody
···
On Mon, Jan 18, 2010 at 12:53 PM, Glenn Johnson <glennpj@gmail.com> wrote:
I thought it would be prudent to check this on Windows before going any
further. Sure enough, the problem does not exist on Windows so I guess
it is a Linux/GTK problem. With regard to the sample app, would it be
sufficient to reference or include the PlateButton.py demo app in the
bug report? It looks like all of the buttons have plenty of extra space
to the right, not just the ones with a drop-arrow. I am attaching a
screen shot here and I will attach it to the bug report as well. Note
where the mouse pointer is in that image. That is where I have to click
to get the menu to pop up. Anything further to the left does not fire
the drop-arrow event. I will work on the bug report shortly.
On Mon, 2010-01-18 at 13:39 -0600, Cody Precord wrote:
Hi,
On Mon, Jan 18, 2010 at 12:53 PM, Glenn Johnson <glennpj@gmail.com> wrote:
> I have been playing with the PlateButtons in the wxpython demo. I am
> running on Linux/GTK, which may be important. The drop-down arrow of the
> plate buttons is drawn immediately to the right of the text label and
> there is space to the right of the arrow. The arrow click event is fired
> when I click on the right hand side of the button. This can actually be
> quite far from the arrow, depending on the length of the label. How can
> I remove the extra space on the right hand side of the plate button so
> that the arrow click event is fired when actually clicking on the arrow
> rather than the blank space?
There shouldn't be much more than a few pixels to the right side of
the button. If there is more than that I would consider it a bug.
Please create a minimal sample that reproduces it and attach a bug
report with your platform information to Google Code Archive - Long-term storage for Google Code Project Hosting.
On Mon, 2010-01-18 at 13:39 -0600, Cody Precord wrote:
I thought it would be prudent to check this on Windows before going any
further. Sure enough, the problem does not exist on Windows so I guess
it is a Linux/GTK problem. With regard to the sample app, would it be
sufficient to reference or include the PlateButton.py demo app in the
bug report? It looks like all of the buttons have plenty of extra space
to the right, not just the ones with a drop-arrow. I am attaching a
screen shot here and I will attach it to the bug report as well. Note
where the mouse pointer is in that image. That is where I have to click
to get the menu to pop up. Anything further to the left does not fire
the drop-arrow event. I will work on the bug report shortly.
My, that is quite a difference. Yes if its reproducible in the demo then just reference that and mention what version of wxPython and Linux distro your using will be enough.