Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tkintre sub windows

import tkinter as tk
from tkinter import * 

my_w = tk.Tk()
my_w.geometry("200x200")  # Size of the window 
my_w.title("www.plus2net.com")  # Adding a title

# create one lebel 
my_str = tk.StringVar()
l1 = tk.Label(my_w,  textvariable=my_str )
l1.grid(row=1,column=2) 
my_str.set("Hi I am main window")

# child window 
my_w_child=Toplevel(my_w) # Child window 
my_w_child.geometry("200x200")  # Size of the window 
my_w_child.title("www.plus2net.com")

my_str1 = tk.StringVar()
l1 = tk.Label(my_w_child,  textvariable=my_str1 )
l1.grid(row=1,column=2) 
my_str1.set("Hi I am Child window")

my_w.mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: python truncade number 
Python :: Remove Brackets from List Using join method 
Python :: Creating a Nested Dictionary 
Python :: LCS Problem Python 
Python :: pandas impute zero 
Python :: how to stop python file using batch file 
Python :: ccacxc 
Python :: How can I make portable python desktop application 
Python :: fiusion python lists 
Python :: print banner in python 
Python :: get distance between points in 1 array pythoin 
Python :: python re return index of match 
Python :: separete even and odd numbers from a list by filter in python 
Python :: how to add start menu in python 
Python :: how to seperate the script from html template when using jQuery in flask 
Python :: python socket backlog 
Python :: Python-Specific Operators 
Python :: Frog Jump time complexity 
Python :: ring Date and Time Clock 
Python :: ring check if a Ring function is defined or not 
Python :: create schema for table for django 
Python :: size of variable 
Python :: unpack list python 
Python :: operator in django query 
Python :: I want to add a new column to the DataFrame containing only the month of the measurement 
Python :: where are dictd dictionaries 
Python :: scrollable dataframe 
Python :: populate initial data for django simple history 
Python :: python time-stamp conversion 
Python :: numpy prod 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =