Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python for unity

from tkinter import*
def phone():
    if var1.get()==0:
        lab1["text"]="557 12 36 94"
    elif var1.get()==1:
        lab1["text"]="579 84 15 76"
    elif var1.get()==2:
         lab1["text"]="577 02 41 76"
        
ob=Tk()
ob.title("telefonis nomrebis gamotana")
ob.geometry("550x450")
var1=IntVar()
var1=set(0)
r=Radiobutton(text="ana",width=5,height=1,variable=var1,value=0)
r1=Radiobutton(text="salo",width=5,height=1,variable=var1,value=1)
r2=Radiobutton(text="dima",width=5,height=1,variable=var1,value=2)
        
lab1=Label(width=10,height=5)
lab1.pack()
r.pack(anchor=W)
r1.pack(anchor=W)
r2.pack(anchor=W)
ob.mainloop()
Comment

unity python

from tkinter import *
main = Tk()
ourMessage ='This is our Message'
messageVar = Message(main, text = ourMessage)
messageVar.config(bg='lightgreen')
messageVar.pack( )
main.mainloop( )
Comment

PREVIOUS NEXT
Code Example
Python :: django create super user 
Python :: uppercase python 
Python :: float64 python 
Python :: flask where to put db.create_all 
Python :: replace pandas column values based on condition 
Python :: EOFError: EOF when reading a line 
Python :: files python 
Python :: obtain items in directory and subdirectories 
Python :: how to make a timer using python 
Python :: python get text of QLineEdit 
Python :: python pickle module 
Python :: list in one line of text in python 
Python :: make value of two tables unique django 
Python :: python sort comparator 
Python :: video steganography using python 
Python :: removing duplicates from django models data 
Python :: enumerate in django templte 
Python :: python seaborn violin plot 
Python :: matplotlib default style 
Python :: data type array 
Python :: python only decimal part 
Python :: CACHE_TYPE flask 
Python :: python if not 
Python :: relative text size put text cv2 
Python :: python not in list 
Python :: choose value none in pandas 
Python :: ternary operator in python 
Python :: delete item from list python 
Python :: django.db.utils.IntegrityError: 
Python :: np.vectorize 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =