Permalink
Browse files

Added __main__ block.

  • Loading branch information...
1 parent 47c91a2 commit 9b8042deb276ef11b6800001b4e3f0a17c80fcad @gkbrk committed Dec 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 randomdilbert.py
View
@@ -56,4 +56,5 @@ def get_random_image(self):
def show_random_image(self, widget=None, data=None):
self.image.set_from_pixbuf(pixbuf_from_url(self.get_random_image()))
-RandomDilbert().show()
+if __name__ == "__main__":
+ RandomDilbert().show()

0 comments on commit 9b8042d

Please sign in to comment.