GIS图模解析工具

1、画草稿:

2、工具 pysimplegui库

#coding:utf-8

import PySimpleGUI as sg

class AppConfig:
    appName = "GIS图模解析工具"
    copyRight = "Design By Daivlin .2024"

layouts = [
    [sg.Text(text=AppConfig.appName,expand_x=True, justification='center',font="16",text_color="#FFFFFF")],
    [sg.Text(text="选择文件:"),sg.InputText(),sg.FileBrowse()],
    [sg.Text(text="选择解析类型:"),sg.Combo(values=["XML","DWG","SVG"],size=(15,1)),sg.Button("开始解析")],
    [sg.Multiline(size=(80,37))],
    [sg.Text(text="选择保存类型:"),sg.Combo(values=["XML","DWG","SVG"],size=(15,1)),sg.Button("保存")],
    [sg.Text(text="-"*145)],
    [sg.Text(text=AppConfig.copyRight,expand_x=True,justification="center")],
]
window = sg.Window(title=AppConfig.appName,layout=layouts,size=(600,800))
while True:
    event,value = window.read()
    if event in (None, 'Exit'):
        break

window.close()

3、业务逻辑:
(1)解析cim图模中的svg文件

posted @ 2024-12-26 13:19  daivlin  阅读(2)  评论(0编辑  收藏  举报