Hooray this is my first python post !
Here i want to share a tkinter based application on python 3 with login form. If user is logging in by clicked a login button then login form will disappear and main form will show up. This code is not connected to database yet ! Only playing with 2 toplevel tk window placement and control its state.
Donwload py source code below.
Tonight i just want to implement searching note by keyword, and its done. Download source code below.
May be this will be the final update for the application.
Execute it using wish not tclsh …
Hello world using tcl/tk presented below may be more clear than oneliner before.
- create a label named .label1 with hello world text
- create a button named .button1 with OK text and will do exit when clicked.
- pack .label1 to make it showed on screen.
- pack .button1 to make it showed on screen below .label1.
Here is the result.
Creating classic hello world program using GUI in Tcl/Tk can be done in few lines or may be only a line !
Oneliner can do below.
pack [button .b1 -text “Hello World” -command exit -width 50]
This line can be read : pack a button named .b1 with hello world text and exit command when clicked.
Save it to hello_oneline.tcl then run on command prompt : wish hello_oneline.tcl.
Click the button and the window will close.