The first thing to do is to avoid import *. Import only specific names. What you could do in this case is a function
# file RenderUI.py
def main():
app = QtGui.QApplication(sys.argv)
app.setStyle("cleanlooks")
win = Window()
win.show()
sys.exit(app.exec_())
and in the other file
# file Render.py
from RenderUI import main
if __name__ == "__main__":
main()
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11
__init__'s minimal signature is def __init__(self):...
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11