猫史档案馆


自制库来袭!guimaker预告

用户:LAG的1048576一枚LAG的1048576一枚查看:5 回复:9 评论:5 创建时间:2020-05-08T09:30:51


easygui功能不够?

tkinter难?

guimaker满足你!

利用help函数可以查看中文教程欧!

代码的话,gitee…………


回复

上一页1 页 / 共 1下一页
煤黑烧饼煤黑烧饼

倒是给个gitee链接啊

点赞0


评论


LAG的1048576一枚LAG的1048576一枚

https://gitee.com/index-1048576

我的个人主页

点赞0


评论


星空之忆星空之忆

……

点赞0


评论


LAG的1048576一枚LAG的1048576一枚

点赞0


评论


tq_xyytq_xyy

想当年VB6下面用鼠标画窗口、画按钮、画文本框,只需要自己写事件的Sub,在模块里写公共Function。原来这么一个当年的菜鸟玩的东西,在tkinter里这么复杂。

# !/usr/bin/python3
# -*-coding:UTF-8-*-

import tkinter as tk

class Application(tk.Frame):
    def __init__(self, master=None):
        super().__init__(master)
        self.master = master
        self.pack()
        self.create_widgets()

    def create_widgets(self):
        self.hi_there = tk.Button(self)
        self.hi_there["text"] = "Hello World\n(click me)"
        self.hi_there["command"] = self.say_hi
        self.hi_there.pack(side="top")

        self.quit = tk.Button(self, text="QUIT", fg="red", command=self.master.destroy)
        self.quit.pack(side="bottom")

    def say_hi(self):
        print("hi there, everyone!")

def main():
    root = tk.Tk()
    app = Application(master=root)
    app.master.title('Hello World')    # 设置窗口标题
    app.mainloop()    # 主消息循环


if __name__ == '__main__':
    main()

点赞1


评论


LAG的1048576一枚LAG的1048576一枚

点赞0


评论


蒟蒻OIer1048576蒟蒻OIer1048576

 

点赞0


评论


蒟蒻OIer1048576蒟蒻OIer1048576

顶上天去

点赞0


评论


tq_xyytq_xyy

有的人,总是刷查看。

点赞0


评论