hello-world.py 822 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. from MyWindow import FileChooser
  16. def main(args):
  17. testChooser = FileChooser()
  18. print("contents of testChooser: " + str(testChooser))
  19. print("contents of testChooser.path: " + str(testChooser.path))
  20. theWindow = MyWindow()
  21. Gtk.main()
  22. return 0
  23. if __name__ == '__main__':
  24. import sys
  25. sys.exit(main(sys.argv))