exe로 빌드하면 기존에 쓰던 2~3mb 간단한 툴이 100MB단위로 덩치가 불어서, 배포하기도 애매했는데... 나만 그런 것이 "아니었다" Net6.0 들어오면서 WinUI3이라고 도입되고 이걸 쓰면 덩치가 커지는 게 맞았음. 나처럼 초보는 이런 것조차도 문제?가 되는데,,, 뭐하나 따라가기가 어렵다. c#..... https://github.com/microsoft/microsoft-ui-xaml/discussions/7683#discussioncomment-3570317 What is the size of a Hello World WinUI 3 program (packed with all dependencies)? · microsoft/microsoft-ui-xaml · Discussion # As..
*유의사항 :: vscode를 "관리자 권한" 으로 실행시키면 정상작동 안함, user권한으로 실행 필요함 실행하면 금지표지만 표시 뜸 (준비사항) > pip install tkinterdnd2 * 1개 모듈만 설치하면 됨. 다른 글에 2개 설치하는 것 불필요 * 사용하는 문구는 모두 "소문자" 여야 함. 코드도 소문자여야 함. import tkinterdnd2 실행예제 실행예제1) # https://github.com/Eliav2/tkinterdnd2 # pip install tkinterdnd2 import tkinter as tk from tkinterdnd2 import DND_FILES, TkinterDnD def drop_inside_list_box(event): listb.insert("en..
GUI기본 모듈인, Tkinter를 사용하면 빠르게 작업이 가능하지만 이 것도 위치를 바꾸거나 구성하다 보면 헷갈릴 때가 있다. 이럴 때 초기구성을 빠르게 잡아볼 수 있는 사이트, 그리고 export , 구성한 파일의 download도 가능하다 https://visualtk.com/ Visual TK, Visual Python Tkinter GUI Creator Labels Button checkBox RadioButton Entry ListBox Message visualtk.com _
https://www.youtube.com/watch?v=wEv3BworNK8&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV&index=61 _
tkinter를 잘 쓰려면, .config()를 잘써야 하는데 이걸 다루는 예제가 인터넷에 별로 없음 더구나 "이쁜" 앱을 만들려고 import ttkbootstrap 을 사용해서 만들게 되면 분명히 doc에는 사용법이 같아 보이는데, .config(bg="blue") 이런 명령어가 잘 안 먹음. https://www.youtube.com/watch?v=tqKyMDqp-3E&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV&index=64 ttkbootstrap을 결국에는 쓰게 될텐데.... 이게 tkinter from ttk와 호환이 되지만 약간씩 다른 부분이 있어서, 결국에는 ttk(original tkinter)를 잘 알아야 하긴 함. 그리고 예제가 ttk 밖에 없음 https..
입력 값을 type에 맞지 않게 들어오게 되면 error처리를 해야 하는데, 사용자는 type 개념이 없기에 아무 것이나 입력하게 됨 int형 숫자만 받아야 하는데 텍스트 string이 들어오게 되면, 처리되도록 try ... except ValueError로 처리해야 함 try: number = int(my_box.get()) function(number) print("정상실행") except ValueError: print("오류발생") https://www.youtube.com/watch?v=IbpInH4q4Sg&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV&index=68