# 프로퍼티 값 self 같이 다루겠다
# 메소드 (self) 메소드 인스턴스 메서드
# 겟터 가져오는거
# 셋터 넣는거
# 값에 직접저근해 직접값을 변경하게하고
# 메소드를 통해서 값을 입력하고 가져오는거
# 메소드 -> 함수 -> 리턴 -> 값
# 파이썬에서 @를 만나면 데코레이터 꾸며주는구나 함수를 꾸며주는구나
# 함수를 꾸며주는 데코레이터
# 클래스를 꾸며주는 테코레이터
# @테코레이터
# def
접근제한자
스코프
윈도우 애플리케이션
웹앱
anacomda prompt 실행하고 가상환경 만들어서 python -m pip install pysimplegui==4.60.5 설치하고 pysimplegui 튜토리얼 들어가서
import PySimpleGUI as sg
if __name__ == "__main__":
# All the stuff inside your window.
layout = [ [sg.Text('Some text on Row 1')],
[sg.Text('Enter something on Row 2'), sg.InputText()],
[sg.Button('Ok'), sg.Button('Cancel')] ]
# Create the Window
window = sg.Window('Window Title', layout)
# Event Loop to process "events" and get the "values" of the inputs
while True:
event, values = window.read()
if event == sg.WIN_CLOSED or event == 'Cancel': # if user closes window or clicks cancel
break
print('You entered ', values[0])
window.close()
복붙하고 티미널에서실행
pip install auto-py-to-exe 인스톨하고 설정에서 나는 위치를
C:/Users/USER/Desktop/WorkSpace/GUI/runner.py 설정했고
단일파일 설정하고 콘솔 매번 나오기 귀찮으니까 꺼주고
마지막으로 고급에서 --hidden-import 에서 PySimpleGUI 만 추가했음
.PY에서 .EXE로 전환 하면 바이러스 감시 뜨는데
window 보안 - 바이러스 및 위협 방지 - 보호 기록 - 심각에서 복원으로 바꿔주면 끝