本文整理汇总了Python中UI.setRoadmapGUI方法的典型用法代码示例。如果您正苦于以下问题:Python UI.setRoadmapGUI方法的具体用法?Python UI.setRoadmapGUI怎么用?Python UI.setRoadmapGUI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI.setRoadmapGUI方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import UI [as 别名]
# 或者: from UI import setRoadmapGUI [as 别名]
def __init__(self, parent=None):
QtGui.QMainWindow.__init__(self,parent)
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
sys.stdout=StdoutRedirector(self.ui.console)
#### 1: ROADMAP ####
UI.setRoadmapGUI(self)
self.ui.roadmap_widget.hide()
self.ui.roadmap_Run.clicked.connect(self.start_roadmap)
self.createTable("roadmap")
self.ui.roadmap_splitter.setSizes([80,800])
self.ui.roadmap_table.hide()
#### 2: POLYGONS ####
UI.setPolygonsGUI(self)
self.ui.polygons_widget.hide()
self.ui.polygons_Run.clicked.connect(self.start_polygons)
self.createTable("polygons")
self.ui.polygons_splitter.setSizes([80,800])
#### 3: BUILDING_GENERATION ####
UI.setBuilding_generationGUI(self)
self.ui.building_generation_widget.hide()
self.ui.building_generation_Run.clicked.connect(self.start_building_generation)
self.createTable("building_generation")
self.ui.building_generation_splitter.setSizes([80,800])
#### 4: VISUALIZATION ####
self.ui.visualization_Run.clicked.connect(UI.visualization)
self.createTable("visualization")
self.ui.visualization_splitter.setSizes([80,800])
示例2: __init__
# 需要导入模块: import UI [as 别名]
# 或者: from UI import setRoadmapGUI [as 别名]
def __init__(self, parent=None):
QtGui.QMainWindow.__init__(self, parent)
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
from procedural_city_generation.additional_stuff.IOHelper import StdoutRedirector
redirector=StdoutRedirector(self.ui.console,app)
sys.stdout=redirector
#### 1: ROADMAP ####
UI.setRoadmapGUI(self)
self.ui.roadmap_widget.hide()
self.ui.roadmap_Run.clicked.connect(self.start_roadmap)
self.createTable("roadmap")
self.ui.roadmap_splitter.setSizes([90, 800])
self.ui.roadmap_table.hide()
#### 2: POLYGONS ####
UI.setPolygonsGUI(self)
self.ui.polygons_widget.hide()
self.ui.polygons_Run.clicked.connect(self.start_polygons)
self.createTable("polygons")
self.ui.polygons_splitter.setSizes([90, 800])
#### 3: BUILDING_GENERATION ####
UI.setBuilding_generationGUI(self)
self.ui.building_generation_widget.hide()
self.ui.building_generation_Run.clicked.connect(self.start_building_generation)
self.createTable("building_generation")
self.ui.building_generation_splitter.setSizes([90, 800])
#### 4: VISUALIZATION ####
self.ui.visualization_Run.clicked.connect(UI.visualization)
self.createTable("visualization")
self.ui.visualization_splitter.setSizes([90, 800])
#### 5: ADVANCED ####
self.ui.clean_directories.clicked.connect(self.clean_directories)
sys.stderr=redirector