Reply
Thread Tools
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#161
Hi,

has anyone understood what is the correct/optimal size for a main window?
I use 800x450 which doesn't look that bad. Still though it doesn't look correct on the bottom and I have some space on the sides.

I've tried several but haven't figured if an aspect ratio is needed to be kept etc.

Thanks.

Edit: forgot to mention that with the above setting I have to keep some space free/unused at the bottom otherwise those elements are cut. That makes it quite non-intuitive and more trial and error than it needs.

Last edited by Saturn; 2010-09-14 at 23:23.
 
Posts: 478 | Thanked: 101 times | Joined on Feb 2010
#162
It's in the first post of this thread, "800x400"
 
yamakasi's Avatar
Posts: 118 | Thanked: 13 times | Joined on Jun 2010 @ mother earth
#163
i am getting this error while converting the ui file to py

an unexpected error occurred.
check that you are using the latest version of PyQt and send .. ."alot of text":

*your version of PyQt (4.7.6)
*the UI file that caused this error
*the debug output of pyuci4 (use the -d flag when calling pyuic4
EDIT : did i download the wrong packages ?

Last edited by yamakasi; 2010-09-16 at 05:11.
 
Posts: 478 | Thanked: 101 times | Joined on Feb 2010
#164
I get the same error, I wondered if I had downloaded the wrong packages too but I downloaded python 2.6 as suggested and then the latest version of qt designer, when I tried to install QT designer it said it detected an older version of python so I downloaded the 2.6 matching version of qt designer and that work without an error message. I assumed then that the version were correct...

I added a few images into the resource I created, could this casue the error?
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#165
Did either of you try the -d flag like it suggests to get the debug output?

It might give us more info. For reference I use 4.6.2 QT and QT Designer on my desktop (Linux). But my python-qt4 packages are 4.7.2. They seem to work ok.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#166
Originally Posted by Spotfist View Post
It's in the first post of this thread, "800x400"
Thanks, I definitely read the first post. On later posts other people have been wondering too but there wasn't any conclusion.

In any case, the optimal with the maximum screen estate (an not cut anything) was to set it at 800x410 and the tab widget to have the geometry [(5,2), 791 x 386]

Hope it is useful.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#167
Originally Posted by Saturn View Post
Thanks, I definitely read the first post. On later posts other people have been wondering too but there wasn't any conclusion.

In any case, the optimal with the maximum screen estate (an not cut anything) was to set it at 800x410 and the tab widget to have the geometry [(5,2), 791 x 386]

Hope it is useful.
If you design your UI properly and align all the widgets to the background and proper use of spacers (and min/max sizes of widgets).. it should auto-resize to most screens without making it look funny.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
yamakasi's Avatar
Posts: 118 | Thanked: 13 times | Joined on Jun 2010 @ mother earth
#168
Originally Posted by fatalsaint View Post
Did either of you try the -d flag like it suggests to get the debug output?

It might give us more info. For reference I use 4.6.2 QT and QT Designer on my desktop (Linux). But my python-qt4 packages are 4.7.2. They seem to work ok.
here is the output:

trackback (most recent call last):
file"C:\program files\python26\lib\site-packages\PyQt4\uic\port_v2\invoke.py", line 12 in invoke
exit_status = driver.invoke()

file"C:\program files\python26\lib\site-packages\PyQt4\uic\port_v2\driver,py", line 7 in invoke
self.generate()

file"C:\program files\python26\lib\site-packages\PyQt4\uic\port_v2\driver,py", line 60 in _generate
pyfile = open(self.opt.output, "wt", encoding="utf8")
typeError: "encoding" is an invalid keyword argument for this function

Last edited by yamakasi; 2010-09-17 at 02:30. Reason: typo
 
Posts: 44 | Thanked: 9 times | Joined on Apr 2010 @ Erfurt, Germany
#169
Originally Posted by yamakasi View Post
i am getting this error while converting the ui file to py



EDIT : did i download the wrong packages ?
got the same error...
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#170
Can you attach the .ui file ?
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:50.