diff options
| author | 2023-07-04 13:18:23 +0800 | |
|---|---|---|
| committer | 2023-07-04 13:18:23 +0800 | |
| commit | 685bb5b0ebb5505733eed6b77f97b975fa0cfcea (patch) | |
| tree | 3459e049bfd7c7437fd1a1371caea50e965bb7eb /hydrorollcore/__init__.py | |
| parent | 036c34e737d5473996d21a16b2313f03991d0c9e (diff) | |
| download | infini-685bb5b0ebb5505733eed6b77f97b975fa0cfcea.tar.gz infini-685bb5b0ebb5505733eed6b77f97b975fa0cfcea.zip | |
Rename __init__.py to __init__.py
Diffstat (limited to 'hydrorollcore/__init__.py')
| -rw-r--r-- | hydrorollcore/__init__.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/hydrorollcore/__init__.py b/hydrorollcore/__init__.py deleted file mode 100644 index 35bc0ea8..00000000 --- a/hydrorollcore/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -name = "HydroRollCore" - -import argparse -from tkinter import messagebox - -from .rule import Rule - -def main(): - # 创建解析器对象 - parser = argparse.ArgumentParser(description='HydroRoll 命令行工具') - - # 添加命令行参数 - parser.add_argument('--gui', action='store_true', help='显示弹窗') - parser.add_argument('--path', help='指定路径') - - # 解析命令行参数 - args = parser.parse_args() - - # 处理命令行参数 - if args.gui: - messagebox.showinfo('提示', '这是一个弹窗!') - - if args.path: - print('输入的路径:', args.path) - -if __name__ == '__main__': - main() |
