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

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

Gives the user a list of defined Blogger accounts so they can select on to be removed.

Definition at line 1847 of file textRouter.py.

01847                                                        :
        """Gives the user a list of defined Blogger accounts so they can select on to be removed."""
        if not self.checkBloggerAccounts(1):
            return

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

        default = options[0]
        dlg = ChooserDialog(self, 'Remove Blogger Account', \
                            "Choose which Blogger account to remove...", \
                            options, default)
        dlg.showModal()
        
        if not dlg.accepted():
            self.status("Removing of Blogger account cancelled.")
        else:
            i = dlg.components.options.findString(dlg.components.options.stringSelection)
            self.theBloggerAccounts[i:i+1] = []
            if len(self.theBloggerAccounts) == 0:
                self.theCurrentBloggerAccount = -1
            else:
                if self.theCurrentBloggerAccount == i:
                    self.theCurrentBloggerAccount = 0
            self.status("Blogger site number %d (%s) has been removed." % (i + 1, options[i]))
                    
        dlg.destroy()


    def on_menuBloggerPreferences_select(self, event):


Generated by  Doxygen 1.6.0   Back to index