get_mainwindow
(function from pyomo.contrib.viewer.ui
)
- pyomo.contrib.viewer.ui.get_mainwindow(model=None, show=True, ask_close=True, model_var_name_in_main=None, testing=False)[source]
Create a UI MainWindow.
- Parameters:
model – A Pyomo model to work with
show – show the window after it is created
ask_close – confirm close window
testing – if True, expect testing
- Returns:
- ui is the MainWindow widget, and model is the linked Pyomo
model. If no model is provided a new ConcreteModel is created
- Return type:
(ui, model)