Page 1 of 1

issue in menubar display in wxpython in ubuntu 12.04

Posted: Tue Nov 08, 2016 10:55 am
by pikkip
I am learning wxPython from a textbook 'wxPython in action'. I went through the code to display menus in Python. I tried out the sample code in my system but no menu came.When I went through possible reasons for this problem, they say that its due to some bug in Ubuntu. I dint understand what it is. I attach the code along with this post. Can someone help me out??? :(

Re: issue in menubar display in wxpython in ubuntu 12.04

Posted: Tue Nov 08, 2016 11:13 am
by PB
Sorry, I know nothing about Python or Linux but the general advice still applies: If you want to know whether the issue is in your code or in wxWidgets/OS, check the most similar scenario in a bundled sample. I trust there is a sample bundled with your wxPython distribution that uses the menubar.

Re: issue in menubar display in wxpython in ubuntu 12.04

Posted: Tue Nov 08, 2016 11:18 am
by pikkip
Sure I will do that :)

Re: issue in menubar display in wxpython in ubuntu 12.04

Posted: Tue Nov 08, 2016 11:26 am
by pikkip
I got the solution for the issue. Set export UBUNTU_MENUPROXY=0 before running the code :D