Created
December 19, 2012 18:26
-
-
Save ozcan/4339060 to your computer and use it in GitHub Desktop.
gtk genişleyerek açılma efekti denemesi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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