본문 바로가기

728x90

개발자 모드

(264)
파이썬 tkinter 레벨 프레임안에 레벨...예제 #======================================= # imports #======================================= import tkinter as tk from tkinter import ttk from tkinter import scrolledtext # Create instance win = tk.Tk() # Add a title win.title("Python GUI") # Adding a Label a_label = ttk.Label(win, text="A label") a_label.grid(column =0, row =0) # Button Click Event Function def click_me(): action.configure(text ..
파이썬 tkinter GUI 스크롤되는 텍스트위젯 예제 #======================================= # imports #======================================= import tkinter as tk from tkinter import ttk from tkinter import scrolledtext # Create instance win = tk.Tk() # Add a title win.title("Python GUI") # Adding a Label a_label = ttk.Label(win, text="A label") a_label.grid(column =0, row =0) # Button Click Event Function def click_me(): action.configure(text ..
파이썬 tkinter 라디오버튼 위젯 #======================================= # imports #======================================= import tkinter as tk from tkinter import ttk # Create instance win = tk.Tk() # Add a title win.title("Python GUI") # Adding a Label a_label = ttk.Label(win, text="A label") a_label.grid(column =0, row =0) # Button Click Event Function def click_me(): action.configure(text ="hello "+ name.get()+ " " + numb..
파이썬 tkinter 체크박스 예제소스 #======================================= # imports #======================================= import tkinter as tk from tkinter import ttk # Create instance win = tk.Tk() # Add a title win.title("Python GUI") # Adding a Label a_label = ttk.Label(win, text="A label") a_label.grid(column =0, row =0) # Button Click Event Function def click_me(): action.configure(text ="hello "+ name.get()+ " " + numb..
파이썬 콤보박스 활용 예제 tkiniter #======================================= # imports #======================================= import tkinter as tk from tkinter import ttk # Create instance win = tk.Tk() # Add a title win.title("Python GUI") # Adding a Label a_label = ttk.Label(win, text="A label") a_label.grid(column =0, row =0) # Button Click Event Function def click_me(): action.configure(text ="hello "+ name.get()+ " " + numb..
파이썬 버튼 disable 시키기 import tkinter as tk from tkinter import ttk win = tk.Tk() win.title("python gui") def click_me(): action.configure(text ="hello "+ name.get()) ttk.Label(win, text ="Enter a name :").grid(column =0, row =0) name = tk.StringVar() name_entered = ttk.Entry(win, width =12, textvariable= name) name_entered.grid(column =0, row =1) action = ttk.Button(win, text = "Click me!", command = click_me) action..
파이썬 위젯에 포커스 설정하는 법 import tkinter as tk from tkinter import ttk win = tk.Tk() win.title("python gui") def click_me(): action.configure(text ="hello "+ name.get()) ttk.Label(win, text ="Enter a name :").grid(column =0, row =0) name = tk.StringVar() name_entered = ttk.Entry(win, width =12, textvariable= name) name_entered.grid(column =0, row =1) action = ttk.Button(win, text = "Click me!", command = click_me) action..
파이썬 버튼 예제 import tkinter as tk from tkinter import ttk win = tk.Tk() win.title("python gui") def click_me(): action.configure(text ="hello "+ name.get()) action = ttk.Button(win, text = "Click me!", command = click_me) action.grid(column =1, row =1) ttk.Label(win, text ="Enter a name :").grid(column =0, row =0) name = tk.StringVar() name_entered = ttk.Entry(win, width =12, textvariable= name) name_entered..

728x90