불평등을 이기자 단결하자, 망사용료 이용 결사 반대!!!

우리가 받는 억압을 이기기 위해 단결합시다, 그것은 프로그래머든 누구든 다 받으니까...

HTML 덕에 지금의 대중문화가 있었다 (아래로 공지 자세히 보기) 자세히보기

공지사항

Tks 오픈 소스

Tax0787 2021. 11. 1. 12:28

1.0 :

2021.10.07 - [개발/라이브러리] - tks 프로젝트

tks = []
nom = -1 
class Tks:
    def __init__(self,name,title,geometry,prints):
        global tks
        global nom
        nom += 1
        if prints: print(str(nom) + "is this Tks object's Memory code.")
        tks.append({'name' : name, 'title' : '\'' +  title + '\'' , 'geometry' : '\'' + geometry + '\''})
    @classmethod
    def wiget(cls,name,command,option,memory_code):
        global tks
        objects = tks[memory_code]
        return "{} = {}({}{});{}.pack()\n".format(name,command,objects['name'],option,name)
    @classmethod
    def sose(cls,option,wiget,sose,memory_code):
        global tks
        objects = tks[memory_code]
        return '''try:
    from Tkinter import *
except:
    from tkinter import *
{} = Tk()
{}.title({})
{}.geometry({})
{}
{}
{}
{}.mainloop()'''.format(objects['name'],objects['name'],objects['title'],objects['name'],objects['geometry'],option,wiget,sose,objects['name'])

=== 참고 ===



: 제 개임을 홍보해 주십니다, 한번씩 들어가 주세요.