|
2010-06-19
, 04:06
|
Posts: 13 |
Thanked: 20 times |
Joined on Jun 2010
|
#2
|
The Following User Says Thank You to timconradinc For This Useful Post: | ||
|
2010-06-19
, 04:31
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#3
|
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
|
2010-06-19
, 13:26
|
Posts: 16 |
Thanked: 8 times |
Joined on Jun 2010
@ England
|
#4
|
|
2010-06-19
, 13:36
|
|
Posts: 1,055 |
Thanked: 4,107 times |
Joined on Oct 2009
@ Norway
|
#5
|
The Following User Says Thank You to w00t For This Useful Post: | ||
|
2010-06-20
, 01:06
|
Posts: 16 |
Thanked: 8 times |
Joined on Jun 2010
@ England
|
#7
|
[Desktop Entry] Version=1.0.0 Encoding=UTF-8 Name=Source RCON Comment=Python Application which sends queries to Source Servers Exec=/opt/srcrcon/srcrcon.py Type=Application X-Osso-Type=application/x-executable
|
2010-06-20
, 04:14
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#8
|
/opt/srcrcon/srcrcon.py
Exec=/usr/bin/python /opt/srcrcon/srcrcon.py
te=QTextEdit() te.setText("testing \n \ 1 \n \ 2 \n \ 3 \n \ 3 \n \ 2 \n \ 1 \n \ asdljhgjhalksjdh") te.moveCursor(QTextCursor.End)
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
|
2010-06-20
, 17:48
|
Posts: 16 |
Thanked: 8 times |
Joined on Jun 2010
@ England
|
#9
|
|
2010-06-21
, 17:54
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#10
|
Perfect! Thanks again!
Xterm said no file or directory found, but the other method works just fine and now it all works as it should!
chmod +x /opt/srcrcon/srcrcon.py
I used the sticky here to get started and I understand the basics of bringing Qt Designer and Python together. I managed to successfully run the hello world application on my phone!
I recently took an application I made in PyGTK+ and re-made it with PyQt (Designer and Eric4). The application itself runs perfectly and does exactly what it should, however it does not display very nicely at all.
It looks how I want it to look in Windows (when previewing): Link
However on my N900 it doesn't look so nice: Link
The Clear and Submit buttons become small and unreadable, the Server IP, Port and RCON Password lines become too short (in height) to tell what was typed in.
The Output text box is also cramped in and should scroll when overfilled, which it does not.
Could anyone with more experience in PyQT development give me a bit more insight into this?
I'll provide the UI file (zipped) if that helps somewhat.
Thanks for reading!
Last edited by TajB; 2010-06-20 at 17:49. Reason: Problem Solved!