hello-world.py 634 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # hello-world.py
  5. # MIT License
  6. # Copyright (c) <2021> <stephen.stengel@cwu.edu>
  7. # This is a test program using glade and gtk through pygobject
  8. #TODO: Figure out why it goes transparent every two color flashes.
  9. # I've found that both gnome-terminal and byobu terminal have the transparency while guake does not.
  10. # Maybe guake is the odd one.
  11. import gi
  12. gi.require_version("Gtk", "3.0")
  13. from gi.repository import Gtk
  14. from MyWindow import MyWindow
  15. def main(args):
  16. theWindow = MyWindow()
  17. Gtk.main()
  18. return 0
  19. if __name__ == '__main__':
  20. import sys
  21. sys.exit(main(sys.argv))