mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-08-29 11:11:35 +00:00
23 lines
653 B
Python
23 lines
653 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
import wx
|
||
|
import gui
|
||
|
import config
|
||
|
from sessionmanager import gui as sessionManagerUI
|
||
|
|
||
|
class switcher(object):
|
||
|
def __init__(self, window):
|
||
|
self.hold_window = window
|
||
|
self.hold_window.Hide()
|
||
|
sessionManagerWindow = sessionManagerUI.sessionManagerWindow()
|
||
|
if sessionManagerWindow.ShowModal() == wx.ID_OK:
|
||
|
self.hold_window.Destroy()
|
||
|
self.window = gui.main.mainFrame()
|
||
|
self.window.Show()
|
||
|
self.window.showing = True
|
||
|
if config.main != None and config.main["general"]["hide_gui"] == True:
|
||
|
self.window.show_hide()
|
||
|
self.window.Hide()
|
||
|
wx.GetApp().SetTopWindow(self.window)
|
||
|
else:
|
||
|
self.window.Show()
|
||
|
|