•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 456,570 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,604 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 794 | Replies: 1
![]() |
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
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 ?
#!/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()![]() |
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- 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 / 2003)
- "setup window on startup" (Viruses, Spyware and other Nasties)
- JFrame goes black when i move it. (Java)
- Slow Video (Windows NT / 2000 / XP / 2003)
- Move window XP PRO to new Hard drive (Windows NT / 2000 / XP / 2003)
- 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


Linear Mode