Skip to content

Instantly share code, notes, and snippets.

@ozcan
Created December 19, 2012 18:26
Show Gist options
  • Save ozcan/4339060 to your computer and use it in GitHub Desktop.
Save ozcan/4339060 to your computer and use it in GitHub Desktop.
gtk genişleyerek açılma efekti denemesi
import pygtk
pygtk.require('2.0')
import gtk
import time
class Win(gtk.Window):
def __init__(self):
super(Win, self).__init__()
self.move(0,0)
self.connect('destroy', gtk.main_quit)
self.genislet()
def genislet(self):
for i in range(1,250):
self.resize(gtk.gdk.screen_width(),i)
self.show_all()
while gtk.events_pending():
gtk.main_iteration(block=False)
time.sleep(0.01)
def main():
app = Win()
gtk.main()
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment