전체 글118 추억의 오락실 게임 만들기. from ctypes import sizeof from curses import KEY_DOWN, KEY_LEFT, KEY_RIGHT from re import S, T from tkinter import CENTER from turtle import st from typing import Tuple from unittest import runner import pygame import os ################################################################################################### # 기본 화 (반드시 해야 하는 것들) pygame.init() #화면 크기 설정 screen_width = 640 screen_heigh.. 2022. 8. 21. GUI계산기(python) from ast import operator import tkinter as tk disValue = 0 operator = {'+': 1, '-': 2, '/': 3, '*': 4, 'c': 5, '=': 6} stoValue = 0 oppre = 0 def number_click(value): # print('숫자',value) global disValue disValue = (disValue*10) + value str_value.set(disValue) def clear(): global disValue, operator, stoValue, oppre stoValue = 0 oppre = 0 disValue = 0 str_value.set(disValue) def oprator_click (val.. 2022. 8. 21. 이전 1 ··· 27 28 29 30 다음