Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

place a widget in tkinter

from tkinter import *
root = Tk()

root.geometry('250x200+250+200')
Label(root, text="Position 1 : x=0, y=0", bg="#FFFF00", fg="white").place(x=5, y=0)
Label(root, text="Position 2 : x=50, y=40", bg="#3300CC", fg="white").place(x=50, y=40)
Label(root, text="Position 3 : x=75, y=80", bg="#FF0099", fg="white").place(x=75, y=80)

root.mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: how to save model to a file python 
Python :: python last element in list 
Python :: ANSHUL 
Python :: download from radio javan python 
Python :: compute count2(aacaagctgataaacatttaaagag, aaaaa). in python 
Python :: qmenu get item value python 
Python :: image bad when scaled in pygame 
Python :: how to include specific data type from the dataframe 
Python :: How do I start a DataFrame index from 1? 
Python :: access last element of list python 
Python :: df to excel 
Python :: python selenium geolocation 
Python :: ImportError: No module named _tkinter, please install the python-tk package 
Python :: how to open html file in python 
Python :: python catch all exceptions 
Python :: how to get index of week in list in python 
Python :: anova in python 
Python :: matplotlib multiple plots with different size 
Python :: regex python multiline 
Python :: count missing values groupby 
Python :: python for property in object 
Python :: pip install dal 
Python :: ValueError: There may be at most 1 Subject headers in a message 
Python :: python pip fix 
Python :: flip specific bit python 
Python :: how to use datetime to tell your age in python 
Python :: open administrator command prompt using python 
Python :: ax set xtick size 
Python :: Print a nested list line by line 
Python :: how to clear screen python 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =