Exemple #1
0
 def _showDummy(self, header, body = '', icon = None, btnVisible = False, btnLabel = '', btnTooltip = '', alignCenter = True):
     self.as_showDummyS({'iconSource': icon,
      'htmlText': str().join((text_styles.middleTitle(header), clans_fmts.getHtmlLineDivider(3), text_styles.main(body))),
      'alignCenter': alignCenter,
      'btnVisible': btnVisible,
      'btnLabel': btnLabel,
      'btnTooltip': btnTooltip})
 def _updateDummy(self):
     if self.webCtrl.isAvailable() and not self._dummyMustBeShown:
         self.as_hideDummyS()
     else:
         self.as_showDummyS({
             'iconSource':
             RES_ICONS.MAPS_ICONS_LIBRARY_ALERTBIGICON,
             'htmlText':
             str().join(
                 (text_styles.middleTitle(
                     i18n.makeString(
                         CLANS.CLANPROFILE_MAINWINDOW_DUMMY_HEADER)),
                  clans_fmts.getHtmlLineDivider(3),
                  text_styles.main(
                      i18n.makeString(
                          CLANS.CLANPROFILE_MAINWINDOW_DUMMY_BODY)))),
             'alignCenter':
             False,
             'btnVisible':
             False,
             'btnLabel':
             '',
             'btnTooltip':
             ''
         })
 def _setDummyData(self,
                   header,
                   body,
                   icon=None,
                   btnVisible=False,
                   btnLabel='',
                   btnTooltip=''):
     self.as_setDummyS({
         'iconSource':
         icon,
         'htmlText':
         str().join(
             (text_styles.middleTitle(header),
              clans_fmts.getHtmlLineDivider(3), text_styles.main(body))),
         'alignCenter':
         False,
         'btnVisible':
         btnVisible,
         'btnLabel':
         btnLabel,
         'btnTooltip':
         btnTooltip,
         'btnLinkage':
         BUTTON_LINKAGES.BUTTON_BLACK
     })
 def _showDummy(self, header, body = '', icon = None, btnVisible = False, btnLabel = '', btnTooltip = '', alignCenter = True):
     self.as_showDummyS({'iconSource': icon,
      'htmlText': str().join((text_styles.middleTitle(header), clans_fmts.getHtmlLineDivider(3), text_styles.main(body))),
      'alignCenter': alignCenter,
      'btnVisible': btnVisible,
      'btnLabel': btnLabel,
      'btnTooltip': btnTooltip})
 def onStrongholdMaintenance(self, showWindow):
     if showWindow:
         text = ''.join((icons.makeImageTag(RES_ICONS.MAPS_ICONS_LIBRARY_ALERTBIGICON, 24, 24, -6, 0),
          text_styles.middleTitle(i18n.makeString(FORTIFICATIONS.MAINWINDOW_MAINTENANCE_HEADER)),
          clans_fmts.getHtmlLineDivider(10),
          text_styles.main(i18n.makeString(FORTIFICATIONS.MAINWINDOW_MAINTENANCE_BODY))))
         self.as_setInfoS(True, text, FORTIFICATIONS.MAINWINDOW_MAINTENANCE_BUTTON)
         self.as_enableWndCloseBtnS(True)
     else:
         self.as_setInfoS(False, '', '')
         self.showStrongholdWaiting(True)
     g_eventDispatcher.updateUI()
 def __showDummyBody(self):
     self.as_showBodyDummyS({
         'iconSource':
         RES_ICONS.MAPS_ICONS_LIBRARY_ALERTBIGICON,
         'htmlText':
         str().join(
             (text_styles.middleTitle(
                 i18n.makeString(
                     CLANS.CLANPROFILE_FORTIFICATIONINFO_DUMMY_HEADER)),
              clans_fmts.getHtmlLineDivider(3),
              text_styles.main(
                  i18n.makeString(
                      CLANS.CLANPROFILE_FORTIFICATIONINFO_DUMMY_BODY)))),
         'alignCenter':
         False,
         'btnVisible':
         False,
         'btnLabel':
         '',
         'btnTooltip':
         ''
     })
 def _updateDummy(self):
     if self.clansCtrl.isAvailable() and not self._dummyMustBeShown:
         self.as_hideDummyS()
     else:
         self.as_showDummyS({'iconSource': RES_ICONS.MAPS_ICONS_LIBRARY_ALERTBIGICON,
          'htmlText': str().join((text_styles.middleTitle(i18n.makeString(CLANS.CLANPROFILE_MAINWINDOW_DUMMY_HEADER)), clans_fmts.getHtmlLineDivider(3), text_styles.main(i18n.makeString(CLANS.CLANPROFILE_MAINWINDOW_DUMMY_BODY)))),
          'alignCenter': False,
          'btnVisible': False,
          'btnLabel': '',
          'btnTooltip': ''})
 def __showDummyBody(self):
     self.as_showBodyDummyS({'iconSource': RES_ICONS.MAPS_ICONS_LIBRARY_ALERTBIGICON,
      'htmlText': str().join((text_styles.middleTitle(i18n.makeString(CLANS.CLANPROFILE_FORTIFICATIONINFO_DUMMY_HEADER)), clans_fmts.getHtmlLineDivider(3), text_styles.main(i18n.makeString(CLANS.CLANPROFILE_FORTIFICATIONINFO_DUMMY_BODY)))),
      'alignCenter': False,
      'btnVisible': False,
      'btnLabel': '',
      'btnTooltip': ''})