Last active
December 16, 2015 01:09
-
-
Save nobonobo/5352952 to your computer and use it in GitHub Desktop.
GTK3アプリをブラウザの中で動かそう!
今のubuntu系ならbroadway(GTKアプリのHTML5バックエンド)のお試しが簡単にできちゃうね!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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