ANN: EnhancedStatusBar Control For wxPython

Hello NG,

    this is my last "gift" before my short :frowning: holyday.

A while ago, IIRC, Franz Steinhausler (but maybe I'm picking the wrong poster)
asked something about adding widgets to the wx.StatusBar (like buttons,
textctrls and so on). This idea has been travelling in my mind for a while,
and now I'm proposing this class.

NOTE: This is *not* an implementation of a new idea, it is just a subclassing
of wx.StatusBar with some cosmetics.

I have created this class and a demo, and I've put them here (as usual):

http://xoomer.virgilio.it/infinity77/EnhancedStatusBar.zip

The demo has 2 different "sub-demos", and the second one is quite an extreme
example of what you can do with EnhancedStatusBar.

What It Can Do:

1) Almost All The Functionalities Of wx.StatusBar Are Still Present;
2) You Can Add Different Kind Of Widgets Into Every Field Of The EnhancedStatusBar;
3) The AddWidget() Methods Accepts 2 Layout Inputs:
   - horizontalalignment: This Specify The Horizontal Alignment For Your
Widget,
     And Can Be ESB_EXACT_FIT, ESB_ALIGN_CENTER_HORIZONTAL, ESB_ALIGN_LEFT
     And ESB_ALIGN_RIGHT;
   - verticalalignment: This Specify The Vertical Alignment For Your Widget,
     And Can Be ESB_EXACT_FIT, ESB_ALIGN_CENTER_VERTICAL, ESB_ALIGN_BOTTOM
     And ESB_ALIGN_LEFT;

As usual, I really really really appreciate any comments/suggestions (and
possible improvements). This is particularly true for posters that uses
different platforms than mine (Windows XP/2000, wxPython 2.6.0.1). Also,
if you just try the class, I would be glad to read some comments on it.

Thanks for every suggestion.

Andrea.

PS. I have run out of new ideas... is there anyone that can share some thoughts
on possible new widgets/improvement of existing widgets?

See you next week.
Andrea.

What about static text that lines wraps (setvalue and auto-magically methods) and allows for simple formatting (\t, \n, \b, etc.)?

If this already exist, can someone tell how to use it?

Scott

andrea_gavana@tin.it wrote:

···

Hello NG,

    this is my last "gift" before my short :frowning: holyday.

A while ago, IIRC, Franz Steinhausler (but maybe I'm picking the wrong poster)
asked something about adding widgets to the wx.StatusBar (like buttons,
textctrls and so on). This idea has been travelling in my mind for a while,
and now I'm proposing this class.

NOTE: This is *not* an implementation of a new idea, it is just a subclassing
of wx.StatusBar with some cosmetics.

I have created this class and a demo, and I've put them here (as usual):

http://xoomer.virgilio.it/infinity77/EnhancedStatusBar.zip

The demo has 2 different "sub-demos", and the second one is quite an extreme
example of what you can do with EnhancedStatusBar.

What It Can Do:

1) Almost All The Functionalities Of wx.StatusBar Are Still Present;
2) You Can Add Different Kind Of Widgets Into Every Field Of The EnhancedStatusBar;
3) The AddWidget() Methods Accepts 2 Layout Inputs:
   - horizontalalignment: This Specify The Horizontal Alignment For Your
Widget,
     And Can Be ESB_EXACT_FIT, ESB_ALIGN_CENTER_HORIZONTAL, ESB_ALIGN_LEFT
     And ESB_ALIGN_RIGHT;
   - verticalalignment: This Specify The Vertical Alignment For Your Widget,
     And Can Be ESB_EXACT_FIT, ESB_ALIGN_CENTER_VERTICAL, ESB_ALIGN_BOTTOM
     And ESB_ALIGN_LEFT;

As usual, I really really really appreciate any comments/suggestions (and
possible improvements). This is particularly true for posters that uses
different platforms than mine (Windows XP/2000, wxPython 2.6.0.1). Also,
if you just try the class, I would be glad to read some comments on it.

Thanks for every suggestion.

Andrea.

PS. I have run out of new ideas... is there anyone that can share some thoughts
on possible new widgets/improvement of existing widgets?

See you next week.
Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.3.3 - Release Date: 5/31/2005

scott wrote:

What about static text that lines wraps (setvalue and auto-magically methods) and allows for simple formatting (\t, \n, \b, etc.)?

If someone decides to do this, let me know, I've written some simple line-wrapping code for wx.lib.FloatCanvas. I'd be glad to give it to you to use, and if you improve it, I'd love to get the improvements back for FloatCanvas.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Hello Andrea,

I have overseen your announcement,

I haven't asked for it, but I was curious.

Wow, again a new control, it looks great.
Especially the scrolling text can be very useful and decorative.

regards,

···

On Tue, 31 May 2005 23:54:15 +0200, andrea_gavana@tin.it wrote:

Hello NG,

   this is my last "gift" before my short :frowning: holyday.

A while ago, IIRC, Franz Steinhausler (but maybe I'm picking the wrong poster)
asked something about adding widgets to the wx.StatusBar (like buttons,
textctrls and so on). This idea has been travelling in my mind for a while,
and now I'm proposing this class.

NOTE: This is *not* an implementation of a new idea, it is just a subclassing
of wx.StatusBar with some cosmetics.

I have created this class and a demo, and I've put them here (as usual):

http://xoomer.virgilio.it/infinity77/EnhancedStatusBar.zip

--
Franz Steinhaeusler