Re: [Maya-Python] Split code into main and ui files individually

2016-10-17 Thread Justin Israel
On Tue, Oct 18, 2016 at 11:41 AM likage wrote: > Well actually it will be my UI accessing the functions of Main.. I should > have mentioned thath > Can you explain what kind of code you expect to have living in your main? It still sounds backwards to have your UI code

Re: [Maya-Python] Split code into main and ui files individually

2016-10-17 Thread Justin Israel
On Tue, 18 Oct 2016, 5:51 AM likage wrote: > Hi Justin, thanks for the feedback. > So I tried doing the following.. > > ### UI File, manager_ui.py ### > > import functools > import manager_main > > class manager_ui(QtGui.QDialog): > def __init__(self, parent=None): >

Re: [Maya-Python] Split code into main and ui files individually

2016-10-17 Thread likage
Hi Justin, thanks for the feedback. So I tried doing the following.. ### UI File, manager_ui.py ### import functools import manager_main class manager_ui(QtGui.QDialog): def __init__(self, parent=None): QtGui.QDialog.__init__(self, parent) self.setWindowTitle('UI Manager')

Re: [Maya-Python] Split code into main and ui files individually

2016-10-15 Thread Justin Israel
On Sun, Oct 16, 2016 at 12:39 PM likage wrote: > I have done all my codings, ui creation etc into a single file and I would > like to separate between my main functions (manager_main.py) and the ui > (manager_ui.py) into 2 files > Just so you know, I created my widgets

[Maya-Python] Split code into main and ui files individually

2016-10-15 Thread likage
I have done all my codings, ui creation etc into a single file and I would like to separate between my main functions (manager_main.py) and the ui (manager_ui.py) into 2 files Just so you know, I created my widgets 'manually' instead of using Qt designer.. class manager_ui(QtGui.QDialog):