How can I retrieve all events a specific widget can send ? I didn't find that
in 'wxPythonDocs'.
I'm trying to use a 'wxGenericDirCtrl', but I can't have a event send when I
double-click (or even click) on an item... Is it possible to do that ? I
tried:
EVT_TREE_ITEM_ACTIVATED(...)
(which was hard to find...), but it doesn't work. Does this widget really send
such event ?
Is it possible to change the default font used for the source code of the
'wxPythonDemo' ? I would like to use a smaller fixed font... Same question
for the 'wxPythonDocs' (the font is really too large).
I'm trying to use a 'wxGenericDirCtrl', but I can't have a event send when I double-click (or even click) on an item... Is it possible to do that ? I tried:
EVT_TREE_ITEM_ACTIVATED(...)
(which was hard to find...), but it doesn't work. Does this widget really send such event ?
The tree control embedded in the wxGenericDirCtrl does send it, but I expect that the dir ctrl is catching the event itself. If you want a shot at it first then bind the event handler directly to the tree, like this:
Is it possible to change the default font used for the source code of the 'wxPythonDemo' ?
Sure, just edit the source code of the demo.
I would like to use a smaller fixed font... Same question for the 'wxPythonDocs' (the font is really too large).
If you are using the wxHtmlHelpViewer just click on the "A" icon on the toolbar to edit the fonts. IIRC, the MS HTMLHelp viewer will use whatever your IE settings are.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
The tree control embedded in the wxGenericDirCtrl does send it, but I
expect that the dir ctrl is catching the event itself. If you want a
shot at it first then bind the event handler directly to the tree, like
this:
Ok, I'll try that. I guess I have to use event.Skip() to let him reach the
normal event handler, once I have done my job ?
> Is it possible to change the default font used for the source code of
> the 'wxPythonDemo' ?
Sure, just edit the source code of the demo.
Well, it uses PythonSTC class to do the job:
from wx import stc
from wxStyledTextCtrl_2 import PythonSTC
class DemoCodeViewer(PythonSTC):
...
Is anybody know it ? I don't know how to change font in this widget...
If you are using the wxHtmlHelpViewer just click on the "A" icon on the
toolbar to edit the fonts. IIRC, the MS HTMLHelp viewer will use
whatever your IE settings are.
Oups, I didn't see the 'A' icon !!! It works fine, thank you very much.
···
On Friday 03 October 2003 20:53, Robin Dunn wrote:
The tree control embedded in the wxGenericDirCtrl does send it, but I
expect that the dir ctrl is catching the event itself. If you want a
shot at it first then bind the event handler directly to the tree, like
this:
Ok, I'll try that. I guess I have to use event.Skip() to let him reach the normal event handler, once I have done my job ?
Yes.
Is it possible to change the default font used for the source code of
the 'wxPythonDemo' ?
Sure, just edit the source code of the demo.
Well, it uses PythonSTC class to do the job:
from wx import stc
from wxStyledTextCtrl_2 import PythonSTC
class DemoCodeViewer(PythonSTC):
...
Is anybody know it ? I don't know how to change font in this widget...
Look in wxStyledTextCtrl_2.py and edit the size values near the begining of the module.
BTW, are you using wxPythonGTK2? I've also noticed too large fonts in non-native widgets when using wxGTK2 vs wxGTK and havn't been able to figure it out. Other core developers don't see the problem.
···
On Friday 03 October 2003 20:53, Robin Dunn wrote:
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
> Is anybody know it ? I don't know how to change font in this widget...
Look in wxStyledTextCtrl_2.py and edit the size values near the begining
of the module.
Ok, I get it. But even if I use courrier for all fonts, I still have some
proportional fonts in the code (class and method name, and keywords too).
Anyway, it is not very important.
BTW, are you using wxPythonGTK2? I've also noticed too large fonts in
non-native widgets when using wxGTK2 vs wxGTK and havn't been able to
figure it out. Other core developers don't see the problem.
No, I'm using wxPython with GTK1.2. But I always have troubles with fonts
on my debian woody :o( I've never understood how fonts are managed under
X, but with my old SuSE, it was ok. Under woody, it is strange...
···
On Friday 03 October 2003 22:11, Robin Dunn wrote: