The Following User Says Thank You to giannoug For This Useful Post: | ||
![]() |
2010-05-20
, 11:49
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#2
|
![]() |
2010-05-20
, 12:07
|
|
Posts: 466 |
Thanked: 180 times |
Joined on Feb 2010
|
#3
|
The Following User Says Thank You to clasificado For This Useful Post: | ||
![]() |
2010-05-20
, 12:41
|
|
Posts: 334 |
Thanked: 171 times |
Joined on Dec 2009
|
#4
|
Take in account that PyQt is considered a thin layer on top of QT, so if you want pyqt tutorials youll get a mix of technical questions about how to improve that layer, and not the application developing thng.
for example, points 1, 2 and 4 matters to QT and no PyQt directly, because are concepts, and belong to QT
Dont consider this as a rule, its just a guide
![]() |
2010-05-20
, 18:27
|
|
Posts: 92 |
Thanked: 50 times |
Joined on Jan 2006
@ the praeternatural tower
|
#5
|
How can you use pyuic4 to output a file that you can include in your main python program?
cd c:\myProjects\textEditor pyuic4 myEdit.ui -o myEditUI.py
import os, sys, glob fileList = glob.glob('*.ui') for fileName in fileList: theCommand = "pyuic4 %s -o %sUI.py" % (fileName, fileName[:-3]) os.system(theCommand)
cd c:\myProjects\textEditor python BatchPyuic4.py
I have some questions that couldn't be answered with Wiki and Forum searching. I'm planning to make a Wiki page with all the information for a starter, from Qt designer to deb packaging with the information this thread gathers.
Let's assume we are using Qt designer and a simple text editor.
What size should be set to the form? (I've seen 800x400 and 800x425)
How to make the compoments fill the form?
How can you use pyuic4 to output a file that you can include in your main python program?
How can you center (horizontal and vertical) elements?
Feel free to ask your own questions. More will be added, I can't remember all the problem I faced now
Thanks for all the answers!