当前位置: 首页>>代码示例>>Python>>正文


Python UI.setRoadmapGUI方法代码示例

本文整理汇总了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])
开发者ID:CodeMason,项目名称:procedural_city_generation,代码行数:35,代码来源:GUI.py

示例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
开发者ID:gkoehl,项目名称:procedural_city_generation,代码行数:44,代码来源:GUI.py


注:本文中的UI.setRoadmapGUI方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。