Skip to main content

A package to create simple Tkinter-GUIs using a seperate textfile

Project description


A package to create simple Tkinter-GUIs using a seperate textfile


SimpleTk is a Class wich interprets a text file with fitting syntax to a tkinter GUI (just like Kivy).


from tkinter import *
from SimpleTk import SimpleTk


root = Tk()
stk = SimpleTk(root, "gui/gui.txt")

Changing Widget Properties

stk.buttonName1["text"] = "I'm a button"
stk.frameName1.bind("<Button-1>", lambda e: print("Click Event"))

File Syntax

In the additional text file you have to take care of the specific syntax. The current version is still sensitive to errors.

Important points:

  • use tab to indent child-widgets
  • No tabs at the end or middle of a line
  • No free lines in the code
  • command can't be added to the widget properties (must be added afterwards in the program code)


  • General:
    • WidgetType: WidgetName(Properties)
  • Example:
    • Label: label1(text="This is a label", bg="lightblue")

To define a Childwidget just indent this line a line under the parent widget.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simpleTk, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size simpleTk-0.0.3-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size simpleTk-0.0.3.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page