나는 전에 응용 프로그램을 만들지 않았습니다 ... 파이썬과 약간의 자바 만 알고 있습니다 ... 파이썬을 사용하여 응용 프로그램을 만들 수 있습니까? 내 앱은 청각 장애인이 청각 장애인과 커뮤니케이션 할 수있는 번역 앱입니다. 어떻게 그것에 대해 갈 것이라고 내 파일 중 하나가 예 (미안 내 코드가 실수 인 경우) : 파이 게임으로파이썬 셸을 안드로이드 응용 프로그램으로 변환하는 방법
수입 시간 수입 OS 수입 SYS에는 EasyGUI 수입 * 수입 파이 게임에서
pygame.init()
screen = pygame.display.set_mode((89, 112))
os.chdir("/Users/marcellobachechi/Desktop/learn-asl")
tf = open("spelspeed.spd","r")
speed = tf.readline()
# def selectword(a):
# a = m
# return a
m = enterbox(msg="what do you want to spell?",image="fingerspell.gif")
if m == "cancel":
sys.exit()
os.system("python startasl.py")
while m == "" or m == " " or m == "null" or m == 'NoneType' or len(m) <= 0:
sys.exit()
os.system("python startasl.py")
mains = len(m)
l = list(m)
if speed == "slow":
speeds = 1.5
print('work')
elif speed == "fast":
speeds = 0.5
print('work')
else:
speeds = 1.0
print('work')
for element in l:
pars = element.split(',')
parts = str(pars)
nparts = parts.replace("['","")
flarts = nparts.replace("']","")
print (flarts)
name = str(flarts) + ".gif"
##############################
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
pygame.init()
myimage = pygame.image.load(name)
imagerect = myimage.get_rect()
black = (255,255,255,255)
screen.fill(black)
screen.blit(myimage, imagerect)
pygame.display.flip()
time.sleep(speeds)
yes = "yes"
rsts = buttonbox(msg="Do you wish to restart?",choices=("yes","no"))
if rsts == yes:
os.system("python fingerspelltranslator.py")
pygame.display.quit()
else:
pygame.display.quit()
os.system("python startasl.py")
pygame.display.quit()
#os.system("python startasl.py")
어떻게하면 화면에 모든 출력물을 가져올 수있는 프레임 작업으로 바꿀 수 있습니까? 어떻게하면 GUI를 만들 수 있습니까? GUI로 이미지를 표시하려면 어떻게합니까? 이것이 사소한 것이라면 미안 해요 !! 나는 겨우 14 살이고 5 개월 전에 프로그래밍을 시작했습니다. 그래서 나는 여전히 아주 새롭고 나는 약간의 실수를 할 수도 있습니다. 모든 도움에 감사드립니다!!!!!
아이폰 앱으로 바꿀 앱이 있는지 궁금합니다. –