Write GUI little software with python + gnome3

Hello ,today i would like show you write some little software with python + gnome3 

https://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html

The manual will show you how to write a very simple example.

Let's go for fun . 

 

Prepare

 

  1. you must have a ubuntu gnome desktop
  2. sudo apt install python-gi-dev
  3. write some helloworld.py 
  4. run by python helloworld.py

 

A very small window

 

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

win = Gtk.Window()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()

Just for fun

Post: 2017-09-25 10:07:58

Views: 1

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS