import cgl.core.startup as startup def load_pipeline_designer(app_, splash_): from apps.pipeline.designer import Designer mw = Designer(type_='preflights') if mw: # mw = Designer(type_='menus') mw.setWindowTitle('Preflight Designer') mw.setMinimumWidth(1200) mw.setMinimumHeight(500) mw.show() mw.raise_() app_.exec_() if splash_: splash_.finish(mw) if __name__ == "__main__": app, splash = startup.app_init() project_management, user_info = startup.user_init() load_pipeline_designer(app, splash)
def string_from_segment_list(segment_list): seg_string = '' for s in segment_list: if s == ',': seg_string = '%s%s' % (seg_string, s) elif s == '.': seg_string = '%s%s ' % (seg_string, s) elif s == '?': seg_string = '%s%s ' % (seg_string, s) else: seg_string = '%s %s' % (seg_string, s) return seg_string.replace('\n', '') if __name__ == "__main__": import cgl.core.startup as startup app, splash = startup.app_init(splash_image='robogary_A.jpg') mw = RoboGary() mw.show() mw.raise_() mw.setMinimumHeight(1056) mw.setMaximumHeight(1056) if splash: splash.finish(mw) # style_sheet = load_style_sheet() # app.setStyleSheet(style_sheet) if splash: splash.finish(mw) app.exec_()