transsimision_line_section/main.py

37 lines
1.1 KiB
Python
Raw Normal View History

2022-07-25 20:32:25 +08:00
import sys
2022-07-26 18:22:28 +08:00
# sys.path.append(r'd:/工程/金上线/code/')
sys.path.append(r'./../')
2022-07-25 20:32:25 +08:00
from PWFile import ControlFile
from gui import MainWindow
from PyQt6.QtWidgets import QApplication
2022-07-24 17:18:57 +08:00
def main1():
# continousePlate = ContinuousPlate(
# r"d:\工程\金上线\排位\定位完排位\PW.0706\J33-J49\033A.dwg",
# r"d:\工程\金上线\排位\定位完排位\PW.0706\J33-J49\S033.DAT",
# "N3339",
# 7,
# )
# continousePlate.draw(r"d:\工程\金上线\code\考虑耐张串重弧垂\T033A.dwg")
string_impact_plate = StringImpactPlate(
2022-07-24 17:18:57 +08:00
r"d:\工程\金上线\排位\定位完排位\PW.0706\J33-J49\033A.dwg",
r"d:\工程\金上线\排位\定位完排位\PW.0706\J33-J49\S033.DAT",
"N3339",
"",
"",
2022-07-24 17:18:57 +08:00
)
string_impact_plate.draw()
2022-07-24 17:18:57 +08:00
2022-07-25 18:21:55 +08:00
def main():
2022-07-25 20:32:25 +08:00
# cf=ControlFile(r'd:\工程\金上线\排位\定位完排位\PW.0706\J49-158\Z156控制文件.xlsx')
# cf.draw()
app=QApplication(sys.argv)
mw=MainWindow()
mw.show()
app.exec()
2022-07-24 17:18:57 +08:00
if __name__ == "__main__":
main()
print("Finished.")