1 Star 0 Fork 0

Conqueror1127/Motion Controller

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
motion_controllerui.py 650 Bytes
一键复制 编辑 原始数据 按行查看 历史
Conqueror1127 提交于 2024-08-31 08:44 . first upload
#!/usr/bin/python3
import pathlib
import tkinter as tk
import pygubu
PROJECT_PATH = pathlib.Path(__file__).parent
PROJECT_UI = PROJECT_PATH / "Motion Controller.ui"
RESOURCE_PATHS = [PROJECT_PATH]
class MainUI:
def __init__(self, master=None):
self.builder = pygubu.Builder()
self.builder.add_resource_paths(RESOURCE_PATHS)
self.builder.add_from_file(PROJECT_UI)
# Main widget
self.mainwindow: tk.Tk = self.builder.get_object("tk1", master)
self.builder.connect_callbacks(self)
def run(self):
self.mainwindow.mainloop()
if __name__ == "__main__":
app = MainUI()
app.run()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/conqueror1127/motion-controller.git
git@gitee.com:conqueror1127/motion-controller.git
conqueror1127
motion-controller
Motion Controller
master

搜索帮助