본문 바로가기

728x90

소스

(10)
컴퓨터 내부 IP 알아내기 #1 import socket in_addr = socket.gethostbyname(socket.gethostname()) print(in_addr)
파이썬 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 ..
파이썬 버튼 예제 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..
C언어 변수 및 상수 #include int main(void) { int age = 12; printf("%d\n", age); age = 13; printf("%d\n", age); return 0; } ​
C언어 printf 문 #include int main() { printf("Hello World\n"); } C언어의 시작 코드
파이썬(python) 캡쳐(스크린샷) 프로그램 import pyautogui screen= pyautogui.screenshot() screen.save("file.jpg") 파이썬으로 캡쳐하는 프로그램이다. 듀얼 모니터 사용시에는 기본 모니터만 캡쳐 되는 불편한 점이 있다. 사용시 참고하기 바랍니다.
파이썬(python) 프레임 예제들... from tkinter import * root =Tk() root.title(" GUI") # 파일 프레임 (파일 추가, 선택 삭제) file_frame = Frame(root) file_frame.pack() btn_add_file = Button(file_frame, padx=5, pady=5, width = 12, text = "파일 추가") btn_add_file.pack(side="left") btn_del_file = Button(file_frame, padx=5, pady=5, width = 12, text = "선택 삭제") btn_del_file.pack(side ="right") # 리스트 프레임 list_frame = Frame(root) list_frame.pack(fill ="b..
방사청_소프트웨어 코딩규칙_소스코드 메트릭

728x90