but it seems not work , The check area seems to be (150,50)
but the checkbox is also the defaut size
how can I set size to CheckBox and let it looks big?
If you need that, you will have to do all of the drawing by hand. The
operating system always uses a fixed size for the checkboxes. There are
pure Python versions of many of the standard controls, but I'm not sure
there is a checkbox.
If you are on Windows, the check box glyphs are made up of characters
from the Marlett font, as are all of the window decorations. You can
draw characters from that font in whatever font size you want.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
The box in the native checkbox widget is drawn by the native APIs and we have no control over the size, shape or style of the box. If you really need this then you can create a custom checkbox widget where you draw the box however you want it, but you'll also have to do things like handling key and mouse events, sending checkbox events, etc.
···
On 6/14/11 8:13 PM, 阮明辉 wrote:
Hi, I was new to wxPython , I use wxPython2.8.12.0 and python2.7.1
I use a CheckBox , and I set it's size
but it seems not work , The check area seems to be (150,50)
but the checkbox is also the defaut size
how can I set size to CheckBox and let it looks big?
The box in the native checkbox widget is drawn by the native APIs and we have no control over the size, shape or style of the box. If you really need this then you can create a custom checkbox widget where you draw the box however you want it, but you'll also have to do things like handling key and mouse events, sending checkbox events, etc.