I implemented whole UI and logic into one py file now I thing it would be good if I separate the UI file from the logic, and to run the UI I shoud run the file that contains logic that inturn loads the UI...
I have RenderUI.py
module that contains everything now, I have made another file named Render.py
from which I want to launch the UI file
both the above files are in folder Batch that I made package by including __init__.py
the RenderUI.py file contains the class Window,
but since I made a PyQt4 app i have this code in the end outside of Window Class ,
if __name__ =='__main__':
app = QtGui.QApplication(sys.argv)
app.setStyle("cleanlooks")
win = Window()
win.show()
sys.exit(app.exec_())
which means in Render.py file I should have from RenderUI.py import *
but this isnt working strangely when I try typing from RenderUI i get option like from RenderUI.RenderUI while their is not such sub file with same name..
so how should I call the RenderUI from Render.py ?