Donkyhotay / pgu

Automatically exported from code.google.com/p/pgu
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Creating a menu unconditionally writes to stdout #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a menu bar via gui.Menus

What is the expected output?
Nothing written to stdout.

What do you see instead?
Current it prints a tuple of each menu item, like:

('add', 'Load campaign', <function theme_open at [...]>, None)
('add', 'Load level', <function theme_open at [...]>, None)
('add', 'Quit', <bound method Application.quit of [...]>, None)
('add', 'Tutorial', <bound method Application.open_tutorial of [...]>, None)

What version of the product are you using? On what operating system?
pgu-0.18 on Debian GNU/Linux Wheezy.

Patches:
I have provided two patches for handling this.  I suggest either guarding the 
print statement somehow (my patch uses the "PGU_DEBUG" env variable) or simply 
removing the print statement.

Original issue reported on code.google.com by NThykier@gmail.com on 7 Dec 2012 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
Removed print statement. Fix is in repository

Original comment by peter.ro...@gmail.com on 25 Dec 2012 at 3:46