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 gigi.require_version('Gtk', '3.0')from gi.repository import Gtkwin = Gtk.Window()win.connect(\"delete-event\", Gtk.main_quit)win.show_all()Gtk.main()

Just for fun

Post: 2017

Views: 173

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