OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> Pyqt Won't Display Text, Text on buttons and labels don't show up
post Jun 22 2006, 06:24 AM
Post #1

Group: Members
Posts: 32
Joined: 29-October 04
Member No.: 5,265

I've tried a couple of "Hello, world" programs on my Zaurus. Both of them almost work, and I'm thrilled! except that "Hello, world!" doesn't show up on either of them.

Here's one of the programs (the simpler of the two):

import sys
from qt import *

myapp = QApplication(sys.argv)

mylabel = QLabel("Hello, world!", None)
mylabel.resize(120, 30)


I've tried both of these programs on my Linux desktop, and the text shows up just fine there. I suspect it might have something with font settings, but I'm just barely learning Qt, and don't know enough about it to know for sure.

What is the cause of this difficulty, and how can I fix it?
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 22nd April 2018 - 02:34 AM