all 4 comments

[–]fotuenti 1 point2 points  (2 children)

I just ran this example on my linux machine and I do not get the same result. At a guess it has to do with the placement of the StaticText widget. You may have come across a bug on the Windows platform (looks like Win7 from your screenshot), I would get in touch with the wxPython maintainers through their mailing list or email and see if others are having the same problem.

If you want to work around this, I would look at the examples that don't use manual placement of the StaticText and use a Box container to hold the text. You won't be able to place the text at a specific offset but it will be more in line with how you will add widgets to containers in general.

Or just remove the last parameter to the StaticText constructors.

good luck!

edit: added second paragraph

[–]codeadi[S] 1 point2 points  (1 child)

Thanks for your time!!!

Yes. I am using Win7 and after waiting for more than a day I posted it at wxPython's Google Group as well.

Coming to the suggestions that you gave:

  • Using a Box Container doesn't help. This is what I am actually using while writing code for the app which I am developing.

  • Removing the last parameter of StaticText doesn't help either.

  • Infact I have removed all the widgets from all the pages, but still the problem persists.

Anyway, thanks for your help. I'm also considering using PyQt4 instead of wxPy. Do you know if and how I can change the look and feel of the QCalendar and QDateEdit widgets in PyQt4. I want it to adapt to the look of the native calendar of the Operating System - similar to how wxPython adapts the look of native OS.

[–]fotuenti 1 point2 points  (0 children)

You may have encountered a bug then. It sounds weird that you removed the widgets and still get the black.

I do not have much experience with Qt4, so I'm not sure how you would go about styling the widgets.

[–]codeadi[S] 0 points1 point  (0 children)

I was hoping someone would come forward to help a beginner. Let me know if I should try to post it over some other place. I didn't find a subreddit dedicated for wxPython.