I'M A GEEK

David Art [aka] ADcomp

  • About

Web / Standalone application

Publié par davidmadbox le 20 avril 2012
Publié dans: programmation, python. Tagged: html, javascript, python, webkit. Laisser un commentaire

Pour avoir une version “desktop” sans passer par le navigateur, j’utilise ce script python avec les modules Gtk/Webkit.

 

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import gtk, webkit, os, sys

class StandaloneApp():
    def __init__(self):
        # main window 
        self.window = gtk.Window()
        # signal/callback
        self.window.connect('destroy', self._quit)
        # webkit 'browser'
        self.webview = webkit.WebView()
        self.webview.open(realpath + '/index.html')  
        self.window.add(self.webview)
        self.window.show_all()

    def _quit(self, widget=None):            
        gtk.main_quit()

    def main(self):
        gtk.main()

realpath = os.path.dirname(os.path.realpath( __file__ ))
StandaloneApp().main()

WIP – ‘tetris attack’ clone : HTML/CSS et Javascript

Publié par davidmadbox le 19 avril 2012
Publié dans: programmation. Tagged: css, game, html, javascript. Laisser un commentaire

 

 

 

Madbox 12.04 – image de test en ligne

Publié par davidmadbox le 27 mars 2012
Publié dans: Madbox. 9 commentaires

Hello, comme d’hab longtemps absent, mais de retour avec un nouveau remix de madbox basé sur Ubuntu precise (development branch) 12.04.

 

Quelques changement, comme lxpanel à la place d’adeskbar ( à suivre .. ), j’ai aussi gardé les themes gtk/icones par défaut (Ambiance/humanity). Un nouveau wallpaper créé par pr09studio, très belle réalisation.

source : http://madbox.tuxfamily.org/

Python sur Android

Publié par davidmadbox le 5 décembre 2011
Publié dans: programmation, python. 1 commentaire

Je commence enfin à tester un peu le développement sur Android, surtout grâce à Scripting Layer for Android (SL4A) qui permet de coder facilement en python mais aussi Lua, Perl, ..

Dans ce petit test, j’ai créé un simple client/server. le client tourne sur mon mobile android et le server sur mon pc. J’ai utilisé le module socket de python.

 

Pour le screenshot, je suis connecté avec un client VNC sur mon mobile  ;)

Posts navigation

← Entrées Précédentes
Entrées Plus Récentes →
  • Articles Récents

    • Canvas Experiment : màj ..
    • HTML5 Canvas Experiment
    • Javascript HTML Canvas – Game Dev
    • SliTaz HTML Desktop
    • Web / Standalone application
  • Catégories

    • ADeskBar
    • desktop
    • Game Dev
    • Javascript
    • Madbox
    • programmation
    • python
    • Ubuntu
    • Uncategorized
  • Blogroll

    • ADeskBar
    • Madbox
    • Mon CV
    • My YouTube Channel
    • Profile GitHub
    • Profile Last.fm
Un Blog WordPress.com. Thème : Parament par Automattic.