| | |
Move window in PYGTK
![]() |
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Solved Threads: 0
hi evrybody,
what is my broblem in this code ?
i want too move window into for with timer. thanks .
what is my broblem in this code ?
Python Syntax (Toggle Plain Text)
#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk import time import os,sys class Example: def __init__(self): window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.connect('destroy', lambda w: gtk.main_quit()) vbox=gtk.VBox(True,0) window.add(vbox) vbox.show() label= gtk.Label() vbox.pack_start(label,True,True,0) label.show() for i in xrange(5) : window.move(200+i,600) time.sleep(.1) label.set_label(str(i)) label.show() pass window.show() def main(): gtk.main() return if __name__ == "__main__": bcb = Example() main()
![]() |
Similar Threads
- General Tips for Mac OS X (Mac tips 'n' tweaks)
- win32 window painting fails (C++)
- Wierd track marks after moving a window (Windows NT / 2000 / XP)
- "setup window on startup" (Viruses, Spyware and other Nasties)
- JFrame goes black when i move it. (Java)
- Slow Video (Windows NT / 2000 / XP)
- Move window XP PRO to new Hard drive (Windows NT / 2000 / XP)
- Set Accessibility Features for People Who are Blind or Who Have Low Vision in WinXP (Windows tips 'n' tweaks)
Other Threads in the Python Forum
- Previous Thread: Python ANTLR need help!
- Next Thread: Passing numpy arrays to C functions
| Thread Tools | Search this Thread |
address aliased anydbm bash beginner bits calling casino changecolor class clear conversion convert corners count cturtle cursor curves definedlines dictionary digital dynamic dynamically events examples excel external file float format frange function gui handling hints homework i/o iframe import info input java line linux list lists loan loop matching mouse multiple number numbers output parsing path port prime programming projects py py2exe pygame python random rational raw_input recursion recursive scrolledtext searchingfile shebang signal singleton string strings subprocess table tails terminal text thread threading time tkinter tlapse tooltip tuple tutorial type ubuntu unicode urllib urllib2 valueerror variable web-scrape whileloop word wxpython





