Network/IRC/IrcNetworkWidget.py

branch
Py2 comp.
changeset 2532
f9500e2d2a8d
parent 2525
8b507a9a2d40
child 2677
3d4277929fb3
equal deleted inserted replaced
2531:a5034da7e61a 2532:f9500e2d2a8d
285 self.__connected = connected 285 self.__connected = connected
286 if self.__connected: 286 if self.__connected:
287 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircDisconnect.png")) 287 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircDisconnect.png"))
288 else: 288 else:
289 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircConnect.png")) 289 self.connectButton.setIcon(UI.PixmapCache.getIcon("ircConnect.png"))
290 290
291 def isConnected(self):
292 """
293 Public method to check, if the network is connected.
294
295 @return flag indicating a connected network (boolean)
296 """
297 return self.__connected
298
291 def setRegistered(self, registered): 299 def setRegistered(self, registered):
292 """ 300 """
293 Public slot to set the registered state. 301 Public slot to set the registered state.
294 302
295 @param connected flag indicating the connection state (boolean) 303 @param connected flag indicating the connection state (boolean)

eric ide

mercurial