Starting out
Page 1 of 1 • Share •
Starting out
Starting out with Python.
Last edited by looseether on Thu Dec 18, 2008 9:41 pm; edited 1 time in total

looseether- Central Scrutiniser

-

Number of posts: 97
Age: 42
Location: Australia
Job/hobbies: tea and cigarettes
Sim: GTL & GTR2
Registration date: 2008-11-25

Re: Starting out
Here is an old python script of mine to startup a QT window.
Of course, this wont run unless you have all the rest of the code.
Of course, this wont run unless you have all the rest of the code.
- Code:
#!/usr/bin/env python
#
#
import sys
import os.path
from qt import *
import WStartupDialog
def main(args):
print "------------------------------------------------------------"
app = QApplication(args)
app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
mainWindow = WStartupDialog.WStartupDialog()
app.setMainWidget(mainWindow)
mainWindow.move(400, 400)
mainWindow.setFixedSize(320, 240)
mainWindow.show()
app.exec_loop()
mainWindow.stop()
print "Application complete."
if __name__ == "__main__":
main(sys.argv)

dave- The Coding God

-

Number of posts: 1
Location: Australia
Language: Everything
Registration date: 2008-12-18
Re: Starting out
Thanks for the post and welcome.
I've downloaded and installed python 2.6.1 and run a few scripts briefly.
Their google.py - which I immediately changed to point to scroogle
Looks ok.
It'll be slow going for while as I mainly concentrate on GTLTool and the re-write, SimbinTool, but with your guiding hand,
I might just get there
cheers
I've downloaded and installed python 2.6.1 and run a few scripts briefly.
Their google.py - which I immediately changed to point to scroogle
Looks ok.
It'll be slow going for while as I mainly concentrate on GTLTool and the re-write, SimbinTool, but with your guiding hand,
I might just get there
cheers

looseether- Central Scrutiniser

-

Number of posts: 97
Age: 42
Location: Australia
Job/hobbies: tea and cigarettes
Sim: GTL & GTR2
Registration date: 2008-11-25

Permissions of this forum:
You cannot reply to topics in this forum
Home
FAQ
Search





