Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Smart framework for rapid desktop development in Python and GTK+ 3

Notifications You must be signed in to change notification settings

ThomasKenyeres/GTKML-GTK-Markup-Language-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTKML-GTK-Markup-Language-

Smart framework for rapid desktop development in Python and GTK+

You will be able to develop GTK+(3.*) applications as easily as an HTML document. You only have to create an XML file and start your application with GTKML runtime environment.

Planned features (in first release)

  • Python script integration (similar to JavaScript integration in HTML)
  • Builtin python libraries for e.g.: HTTP requests, jQuery-like feature etc.

####Run your application(source):

python3 <dir>/gtkml/runtime/main.py <your application's xml>

####Sample: app.xml

<application>

<window show="True">
    <meta></meta>
    <header>
        <python src="funcs.py"></python>    
        <title></title>
    </header>
    <body>
            <label 
            id="lbl1" color="red" 
                onclick="lbl1_clicked()">
                Hello world!
            </label>        
    </body>
</window>

</application>

funcs.py

def lbl1_clicked():
    _("#lbl1").set_text("Hi there!")

def fill():
    content = _.get("http://example.com/content")
    for item in content:
        _("body").append(Label(item["name"]))

Working example:

Further features to be implemented(later)

  • Full CSS support
  • Python snippets in DOM
  • Less code, same features - concept