Menu

#3 shebang in auto-generated code wrong...

open
nobody
None
5
2007-04-06
2007-04-06
Anonymous
No

The shebang line in the auto-generated code is under linux (Ubuntu) wrong:

----------------------------------------------------
#!/usr/bin/env python""" Test GUI.py --

UI generated by GUI Builder Build 146 on 2007-04-06 17:55:48 from:
/test/GUI Builder/Test GUI.ui
This file is auto-generated. Only the code within
'# BEGIN USER CODE (global|class)'
'# END USER CODE (global|class)'
and code inside the callback subroutines will be round-tripped.
The 'main' function is reserved.
"""

from Tkinter import *
from Test GUI_ui import Test_GUI

# BEGIN USER CODE global

# END USER CODE global

class CustomTest_GUI(Test_GUI):
pass

# BEGIN CALLBACK CODE
# ONLY EDIT CODE INSIDE THE def FUNCTIONS.

# _button_1_command --
#
# Callback to handle _button_1 widget option -command
def _button_1_command(self, *args):
pass

# END CALLBACK CODE

# BEGIN USER CODE class

# END USER CODE class

def main():
# Standalone Code Initialization
# DO NOT EDIT
try: userinit()
except NameError: pass
root = Tk()
demo = CustomTest_GUI(root)
root.title('Test_GUI')
try: run()
except NameError: pass
root.protocol('WM_DELETE_WINDOW', root.quit)
root.mainloop()

if __name__ == '__main__': main()
----------------------------------------------------

Discussion


Log in to post a comment.