Skip to content

dokelung/tkouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tkouter

Build Status Coveralls github

Taste it

from tkinter import Tk, messagebox
from tkouter import *


class HelloWorld(TkOutWidget):
    layout = """
        <html>
            <head>
                <title> hello world </title>
            </head>
            <body>
                <button width="20" command="{self.hello}">
                    Click
                </button>
            </body>
        </html>"""

    def hello(self):
        messagebox.showinfo('welcome to tkouter', 'hello world')


if __name__ == '__main__':
    root = Tk()
    hl = HelloWorld(root)
    hl.pack()
    root.mainloop()

Introduction

Creating GUI layout can be troublesome sometimes. This package provides an easy way that you can use familar html to create layout. Also, it can help you save lots of time on the settings of widgets, variable management and more. This package helps user to use MVC pattern to do GUI design.

Installation

Use pip:

$ pip install tkouter

or you can clone this repo directly.

$ git clone https://github.com/dokelung/tkouter.git

Requirements

Features

  • Use html (xml) to layout
  • Support css to config widgets

About

Package for creating tkinter layout by html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published