what is tkinter code example

Example 1: tkinter tutorial

# check this code first.
from tkinter import *

app = Tk()
# The title of the project
app.title("The title of the project")
# The size of the window
app.geometry("400x400")

# Defining a funtion
def c():
    # Label
    m = Label(app, text="Text")
    m.pack()


# Button
l = Button(app, text="The text of the Butoon", command=c)
# Packing the Button
l.pack()
app.mainloop()
# Quick Note : 
# When you put a command you should not use parentheses
# l = Button(app, text="The text of the Butoon", command=c)
# l = Button(app, text="The text of the Butoon", command=c())

Example 2: python tkinter

import tkinter as tk

obj = tk.Tk() # Creates a tkinter object
label = tk.Label(obj, text="This is a text button")

Example 3: what is selenium

- Selenium is a set of libraries that help us automate and interact 
  with the browsers.
  
  Why Selenium?
  - OPEN SOURCE -> FREE
    - It supports different types of browsers
    - It supports multiple different programming languages
    - Huge community behind it so many answers to any problems/questions
    - Could run on different OS systems such as: Mac, Windows, Linux etc.

Example 4: python gui

import tkinter as tk
#Importing the main module
window = tk.Tk()
window.mainloop()

Example 5: what is jupyter

Project Jupyter is a nonprofit organization created to "develop open-source
software, open-standards, and services for interactive computing across dozens
of programming languages".

Spun-off from IPython in 2014 by Fernando Pérez, Project Jupyter supports
execution environments in several dozen languages.

Example 6: how to create tkinter window

import tkinter
master = tkinter.Tk()
master.mainloop()