Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Simple gui de python para uso rapido e pratico / Simple python gui for quick and practical use

Project description

README

With simple and dynamic goal you can create a direct access class layer using import pykidgui as pk, then Be able to create your interface using pk or even create without it using pure tkinter element. Basic commands are used to call the class tkinter.

Line of logic is (pk.add_build_map = creating layer view // pk.new_checkbox = creating checkbox)

Ex.: import pykidgui as pk

def msg():
	pk.new_message_erro("msg")

Pk.add_build_map ('checkbox: LEFT')


Pk.new_checkbox ('check2')


pk.new_label("button 1")


pk.add_build_map("label")


pk.new_click_text("message teste") 


pk.new_on_click(msg)


pk.add_build_map("on_click")


pk.new_label("button 2")


pk.add_build_map("label")


pk.new_click_text("Resultado")


pk.new_on_click(x)


pk.add_build_map("on_click")


pk.text_title="test title"



pk.window_geometry="200x200"



pk.gui()

Canvas simple script

[without needing the gui()]

import pykidgui as pk

C = pk.Canvas(bg ="yellow",height = 250, width = 300) 

line = C.create_line(108, 120,320, 40,fill ="green") 

arc = C.create_arc(180, 150, 80, 210, start = 0,extent = 220,fill ="red") 

oval = C.create_oval(80, 30, 140,150,fill ="blue") 

C.pack()
# Pk simple script

[without needing the gui()]

import pykidgui as pk

pk.text_title = "TEST btn"


pk.window_geometry = "200x200"


pk.Label(text ="button1").pack()


pk.Button(text="btn1").pack()


pk.Label(text ="button2").pack()


pk.Button(text="btn2").pack()

Simple grid in pykidgui

x1 = pk.Label(text ="user")
e1 = pk.Entry()


x1.grid(row=0,column=1)


e1.grid(row=0, column=2)

GET Entry in pykidgui

def pri():
	 user = pk.entry[0].get()

	 print(user)

pk.new_entry("0")


pk.add_build_map("entry")


pk.new_click_text("Resultado") 


pk.new_on_click(pri)


pk.add_build_map("on_click")

pk.gui()

[without needing the gui()]


def http():
	 user = e1.get()


	 webbrowser.open(str(user), new=0, autoraise=True)


	 print(user)


import webbrowser

e1 = pk.Entry()


x1 = pk.Label(text ="link:")

e1.grid(row=0, column=2)


x1.grid(row=0,column=1)


btn = pk.Button(text="Go",command =http)


btn.grid(row=2,column=1)

GET Entry Login in pykidgui

def perfil():
	  pk.messagebox.showinfo("Perfil", "Logado com sucesso!")

def user():


	 user = pk.entry[0].get()


	 senha = pk.entry[1].get()


	 if user == "ronan" and senha == "123":


		  perfil()


	 else:

		 pk.messagebox.showwarning("Erro de Login", "Senha ou Usuario não esta correto!")    


pk.new_label("Usuario")



pk.add_build_map("label")


pk.new_entry("1")


pk.add_build_map("entry")


pk.new_label("Senha")


pk.add_build_map("label")


pk.new_entry("2")


pk.add_build_map("entry")


pk.new_label("")


pk.add_build_map("label")


pk.new_click_text("login") 


pk.new_on_click(user)


pk.add_build_map("on_click")



pk.text_title="Login"


pk.window_geometry="200x200"


pk.gui()

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 pykidgui, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pykidgui-1.1.1-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pykidgui-1.1.1.tar.gz (4.7 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