Well… I runned both in Windows Xp and Windows 2k and the separator happened to be a blank space…!
I’m using wxPython 2.4.2.4 for Python 2.3. I know this is old, but it
is a huge project and there was no time to update the code according to
newer versions… Perhaps this could be the problem. We should be
updating our code to work with newer versions in July.
The idea you had, about creating a button with a line on it… Well, I
did that. And it worked fine for XP. But under 2k, the items on toolbar
looklike buttons. I mean, they have a sort of frame in their area…
Even if they are disabled. So, I can
Sorry to break in again, but you can also use a custom bitmap as a separator: just build a vertical line with your favorite image software (like Paint on Windows or whatever is used under GTK), and add it to your toolbar as:
Well… I runned both in Windows Xp and Windows 2k and the separator happened to be a blank space…!
I’m using wxPython 2.4.2.4 for Python 2.3. I know this is old, but it
is a huge project and there was no time to update the code according to
newer versions… Perhaps this could be the problem. We should be
updating our code to work with newer versions in July.
Regarding the idea you had, about creating a button with a line on it… Well, I
did that. And it worked fine for XP. But under 2k, the items on toolbar
look like buttons. I mean, they have a sort of ‘frame’ in around their area…
Even if they are disabled. So, I can’t keep this solution… it looks like too ugly… =(
Subject: RE: [wxPython-users] Separator in wxToolBar
Sorry to break in again, but you can also use a custom bitmap as a separator: just build a vertical line with your favorite image software (like Paint on Windows or whatever is used under GTK), and add it to your toolbar as:
Well... I runned both in Windows Xp and Windows 2k and the separator happened to be a blank space..!
IIRC, using the wx.TB_FLAT style may make a difference.
I'm using wxPython 2.4.2.4 for Python 2.3. I know this is old, but it is a huge project and there was no time to update the code according to newer versions... Perhaps this could be the problem. We should be updating our code to work with newer versions in July.
The idea you had, about creating a button with a line on it... Well, I did that. And it worked fine for XP. But under 2k, the items on toolbar looklike buttons. I mean, they have a sort of frame in their area...
And this will definitely be different if you use the wx.TB_FLAT style. The tools won't have the 3D button appearance, and will look more modern.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!