Skip to content

Instantly share code, notes, and snippets.

@nobonobo
Last active December 16, 2015 01:09
Show Gist options
  • Select an option

  • Save nobonobo/5352952 to your computer and use it in GitHub Desktop.

Select an option

Save nobonobo/5352952 to your computer and use it in GitHub Desktop.
GTK3アプリをブラウザの中で動かそう! 今のubuntu系ならbroadway(GTKアプリのHTML5バックエンド)のお試しが簡単にできちゃうね!
#!/bin/sh
# for ubuntu 12.xx
sudo add-apt-repository ppa:malizor/gtk-broadway
sudo apt-get update
sudo apt-get upgrade
GDK_BACKEND=broadway UBUNTU_MENUPROXY= LIBOVERLAY_SCROLLBAR=0 python sample.py &
sensible-browser http://localhost:8080/
#!/usr/bin/env python
# encoding: utf-8
from gi.repository import Gtk
win = Gtk.Window()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment