This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
root = Tk() | |
root.title("Window") | |
menuBar = Menu(root) | |
filemenu = Menu(menuBar,tearoff=0) | |
filemenu.add_command(label="New File") | |
filemenu.add_command(label="Open File") | |
filemenu.add_command(label="Save File") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter.ttk import Button | |
from tkinter.messagebox import showinfo | |
root = Tk() | |
root.title("Window") | |
def sub_value(): | |
value = str(inp.get()) | |
li.insert(END,value) | |
def get_value(): | |
showinfo(title="Information",message=f"You Click The: {li.get(li.curselection())}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter.ttk import Combobox,Button | |
from tkinter.messagebox import showinfo | |
root = Tk() | |
root.title("Window") | |
root.geometry("400x300+500+80") | |
root.resizable(0,0) | |
def get_color(): | |
showinfo(title="Information",message=f"Color: {st.get()}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter.ttk import Button,Radiobutton | |
from tkinter.messagebox import * | |
root = Tk() | |
root.title("Window") | |
root.geometry("400x300+500+80") | |
root.resizable(0,0) | |
def get_color(): | |
showinfo(title="Information",message=f"Color: {st.get()}") |