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 :: how to connect ip camera to opencv python 
Python :: python dataframe add row 
Python :: can i call a python script from a function 
Python :: deletion in a binary search tree 
Python :: python avg 
Python :: noob python 
Python :: plot the distribution of value_counts() python 
Python :: aiohttp set port 
Python :: extra import on django 
Python :: how to skip number in while loop python 
Python :: pandas cumsum 
Python :: how to add find the smallest int n in a list python 
Python :: how to check if some file exists in python 
Python :: combination in python 
Python :: Python RegEx Compile – re.compile() 
Python :: get all ForeignKey data by nesting in django 
Python :: sum of fraction numbers in python 
Python :: python sum only numbers 
Python :: horizontal barplot 
Python :: Roberta Inference TensorFlow 
Python :: python string to lowercase 
Python :: Run a Flask API from CMD 
Python :: how to do formatting in python with format function 
Python :: how to get var value by name godot 
Python :: python prevent print output 
Python :: datetime to timestamp 
Python :: with function python 
Python :: maximun row and columns in python 
Python :: encapsulation in python 
Python :: flask run development mode 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =