random musings

March 4, 2011

To practice blogging....

One must post. And while school is in session and the bf is around, there is simply no way I can keep this blog 'purely craft' and have any sort of publication volume. Science audience, deal with the craftiness. Crafty types, deal with the science.

Today I learned: 'Hello World!' using PyQt (more info can be found here and here). There are a lot of well-written tutes that cover actual lessons. The snippet below is more for testing that your system works.


import sys
from PyQt4.QtGui import QLabel, QApplication
App = QApplication(sys.argv)
Label = QLabel('Hello World!')


Note: I had to paste code line-by-line into idle because it is fussy about carriage returns

No comments:

Post a Comment