MCPcopy Create free account
hub / github.com/Syncplay/syncplay / __init__

Method __init__

syncplay/ui/gui.py:2125–2157  ·  view source on GitHub ↗
(self, passedBar=None)

Source from the content-addressed store, hash-verified

2123 self.publicServerList = settings.value("publicServers", None)
2124
2125 def __init__(self, passedBar=None):
2126 super(MainWindow, self).__init__()
2127 self.console = ConsoleInGUI()
2128 self.console.setDaemon(True)
2129 self.newWatchlist = []
2130 self.publicServerList = []
2131 self.lastCheckedForUpdates = None
2132 self._syncplayClient = None
2133 self.folderSearchEnabled = True
2134 self.hideEmptyRooms = False
2135 self.currentRooms = []
2136 self.QtGui = QtGui
2137 if isMacOS():
2138 self.setWindowFlags(self.windowFlags())
2139 else:
2140 try:
2141 self.setWindowFlags(self.windowFlags() & Qt.AA_DontUseNativeMenuBar)
2142 except TypeError:
2143 self.setWindowFlags(self.windowFlags())
2144 self.setWindowTitle("Syncplay v" + version + revision)
2145 self.mainLayout = QtWidgets.QVBoxLayout()
2146 self.addTopLayout(self)
2147 self.addBottomLayout(self)
2148 self.loadMenubar(self, passedBar)
2149 self.populateMenubar(self)
2150 self.addMainFrame(self)
2151 self.loadSettings()
2152 self.setWindowIcon(QtGui.QPixmap(resourcespath + "syncplay.png"))
2153 self.setWindowFlags(self.windowFlags() & Qt.WindowCloseButtonHint & Qt.WindowMinimizeButtonHint & ~Qt.WindowContextHelpButtonHint)
2154 self.show()
2155 self.setAcceptDrops(True)
2156 self.clearedPlaylistNote = False
2157 self.uiMode = constants.GRAPHICAL_UI_MODE

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 8

addTopLayoutMethod · 0.95
addBottomLayoutMethod · 0.95
loadMenubarMethod · 0.95
populateMenubarMethod · 0.95
addMainFrameMethod · 0.95
loadSettingsMethod · 0.95
isMacOSFunction · 0.90
ConsoleInGUIClass · 0.85

Tested by

no test coverage detected