Hi.i am fairly new to wxpython and man its been giving me hard time.anyway i just cant get the menubar and the statusbar to be displayed.i attached the source codev and a screen shot.yes i read previous posts and the munubar is not located up in the left corner of the screen.
my configuration:
macbook air mid 2012
mac os 10.8.5
python 2.7.2
wxpyhon 3.0.0
please advise.

toolbar.py (1.09 KB)
images.py (881 Bytes)
You have some spelling issues, the most important one is:
def __int__(self, parent, id ):
should be:
def __init__(self, parent, id ):
"__int__" is a method Python/wxPython doesn't know about and does not run automatically like it does "__init__", so your code is never executed.
A problem like this is easily found if you use e.g. a debugger or just add a simple "print('got here')" into your code.
After that you have a few method names wrong, but you will get exceptions for them when the code runs.
Werner
···
On 6/11/2014 6:47, moussa harouna wrote:
Hi.i am fairly new to wxpython and man its been giving me hard time.anyway i just cant get the menubar and the statusbar to be displayed.i attached the source codev and a screen shot.yes i read previous posts and the munubar is not located up in the left corner of the screen.
my configuration:
macbook air mid 2012
mac os 10.8.5
python 2.7.2
wxpyhon 3.0.0
please advise.
Thank you so much for not insulting me first.i finally made it work.you were right about the exceptions.can you explain about the debugger part i didnt quite get it.i am using Komodo IDE but it didnt point out any of the errors.
···
On Wednesday, June 11, 2014 6:18:05 PM UTC+8, werner wrote:
On 6/11/2014 6:47, moussa harouna wrote:
> Hi.i am fairly new to wxpython and man its been giving me hard time.anyway i just cant get the menubar and the statusbar to be displayed.i attached the source codev and a screen shot.yes i read previous posts and the munubar is not located up in the left corner of the screen.
> my configuration:
> macbook air mid 2012
> mac os 10.8.5
> python 2.7.2
> wxpyhon 3.0.0
> please advise.
You have some spelling issues, the most important one is:
def __int__(self, parent, id ):
should be:
def __init__(self, parent, id ):
"__int__" is a method Python/wxPython doesn't know about and does not
run automatically like it does "__init__", so your code is never executed.
A problem like this is easily found if you use e.g. a debugger or just
add a simple "print('got here')" into your code.
After that you have a few method names wrong, but you will get
exceptions for them when the code runs.
Werner
Hi,
...
Thank you so much for not insulting me first.
What would that helped you or me:-)
i finally made it work.you were right about the exceptions.can you explain about the debugger part i didnt quite get it.i am using Komodo IDE but it didnt point out any of the errors.
Haven't used Komodo IDE, I guess it does have a debugger, if yes you could set a breakpoint in the first line of the method not working for you. With today's problem this breakpoint would never have been triggered, which should then raise the question why is it not getting there and that might have put you onto the fact that you did not name the method correctly.
Hope that makes it clearer.
Werner
···
On 6/11/2014 15:53, moussa harouna wrote: