Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

place a widget in a specific position 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 :: python logger format time 
Python :: how to return only fractional part in python 
Python :: print the heat map python 
Python :: koncemzem 
Python :: masking function pyspark 
Python :: convert from object to integer python 
Python :: python convert twitter id to date 
Python :: resource wordnet not found python 
Python :: image to array keras 
Python :: add trendline to plot matplotlib 
Python :: import py to exe 
Python :: python sqlalchemy engine 
Python :: matlab find in python 
Python :: ubuntu download file command line 
Python :: import matplotlib python 
Python :: pandas create dataframe of ones 
Python :: pandas select column by index 
Python :: print no new line python 
Python :: pydotprint 
Python :: serializers.py include all fields 
Python :: python tkinter disable dropdown 
Python :: how to change colour of rows in csv using pandas 
Python :: dont filter= true in scrapy 
Python :: how to get current time in milliseconds in python 
Python :: create a dataframe with series 
Python :: send email hotmail using python 
Python :: python multiply all elements in array by constant 
Python :: django getting started 
Python :: print nested list in new lines 
Python :: pandas remove rows with null in column 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =