How to edit a .ui converted python file?
-
wrote on 25 Feb 2015, 12:44 last edited by
Hello All,
I have created a .ui file while I creating my sample qt python GUI application using qt designer. I have converted this ui file into python using pyuic. Now I want to edit this python file for some GUI changes or I have to add some
functions to display some data in this GUI!! Is it possible and how I can do this? Could anyone please help me?Thanks in advance
-
wrote on 26 Feb 2015, 08:50 last edited by
Go to project directory, get that file, and open it using "netbeans":https://netbeans.org/ and edit it, save it. Is it what you want?
-
wrote on 26 Feb 2015, 09:12 last edited by
You may open it with any simple text editor. Usually we should import those files and make changes on the main file. This way, You may change the .ui with the appropriate tools (QCreator...), recompile it and import it as usual.
As PyQt4 editor and IDE I like "eric6":http://eric-ide.python-projects.org/index.html. -
Go to project directory, get that file, and open it using "netbeans":https://netbeans.org/ and edit it, save it. Is it what you want?
wrote on 18 Mar 2015, 09:05 last edited byDear Sanjay,
Thank you very much for replying to my question, your suggestion is very useful. My sincere apologies for delaying my response to you due to my confusions on this question and qt forum migration.
-
You may open it with any simple text editor. Usually we should import those files and make changes on the main file. This way, You may change the .ui with the appropriate tools (QCreator...), recompile it and import it as usual.
As PyQt4 editor and IDE I like "eric6":http://eric-ide.python-projects.org/index.html.wrote on 18 Mar 2015, 09:06 last edited byDear Tripanurium,
My sincere thanks for replying to my question, your answer is too good, really apologies for delaying my response due to my confusions
on my question. -
wrote on 18 Mar 2015, 09:37 last edited by mcosta
-
wrote on 18 Mar 2015, 09:52 last edited by
@mcosta ,
Thank you very much for replying me, it is useful.
But can I use Tkinter to edit this converted UI Python code, and if I copy this converted file to desktop from its QT project directory, will it work? I am familiar with only Tkinter and I am slowly getting familiar with QT creator IDE only, if it is possible then it will be great!
I am really hesitated to ask this naive question, maybe I am asking very silly!! But still I thought of asking!!