Skip to main content

Hackerakos library

Project description

Simple Tkinter

The Simple Tknter is a python package made to make the Tkinter simpler.

Installation

Use the package manager pip to install foobar.

pip install hackerakos

Usage

# Import the Simple Tkinter package
from hackerakos import *

# ----- Start the GUI's main loop -----
# winTitle=winTitle="Simple Tkinter"   --->   Set the window name (default=Simple Tkinter)
# winSize="400x400"   --->   Set the window size (default=400x400)
# winIcon="ico/myIco.ico" Set the window icon (default=ico/simple_tkinter.ico)
# boxing="place"   --->   Set the boxing type for your GUI(default=pack)
loop_start(winTitle="Simple Tkinter", winSize="400x400", winIcon="ico/simple_tkinter.ico", boxing="place")



# ----- Add a some text to your window -----
# text="Hello World! 1"   --->   Set the text for your label.
# x=0, y=0   --->   Set the cordinates of your label
# bg="#FF0000"   --->   Set the backround color of your label to #FF0000 (red)
# tc="red"   --->   Set the text color of your label to black
label(text="Hello World! 1", x=0, y=0, bc="#FF0000", tc="black")
label(text="Hello World! 2", x=0, y=30)


# ----- Colors -----
# You can select every color you want from a new window
# and the hex code of the selected color 
# will be printed in the console
hex_colors_palette()

# You can see all the colors if you do not like hex codes 
name_color_chart()



# Close the GUI's main loop
loop_close()

A Hello World Program

# Import the Simple Tkinter package
from hackerakos import *

# Start the GUI's main loop
loop_start()


# text="Hello World!"   --->   Set the text for your label.
label(text="Hello World!")


# Close the GUI's main loop
loop_close()

Project details


Download files

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

Source Distribution

hackerakos-0.0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

hackerakos-0.0.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page