Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def textRouter::TextRouter::on_menuBloggerChooseActiveAccount_select (   self,
  event 
)

Gives the user a list of defined blogger accounts so they can select the active one.

Definition at line 1816 of file textRouter.py.

01816                                                              :
        """Gives the user a list of defined blogger accounts so they can select the active one."""
        if not self.checkBloggerAccounts(1):
            return

        options = []
        for bloggerSite in self.theBloggerAccounts:
            options.append(bloggerSite.prefs["username"])

        defIndex = self.theCurrentBloggerAccount
        if defIndex == -1:
            defIndex = 0
        default = options[ defIndex ]

        dlg = ChooserDialog(self, 'Choose Active Blogger Account', \
                            "Choose which Blogger account to set as active...", \
                            options, default)
        dlg.showModal()
        
        if not dlg.accepted():
            self.status("Blogger account selection cancelled.")
        else:
            i = dlg.components.options.findString(dlg.components.options.stringSelection)
            if i == -1:
                self.status("No Blogger account selected for activation.")
            else:
                self.theCurrentBloggerAccount = i
                self.status("Blogger site number %d (%s) set as active." % (i + 1, options[i]))

        dlg.destroy()

    def on_menuBloggerRemoveAccount_select(self, event):


Generated by  Doxygen 1.6.0   Back to index