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

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

-- MENU: FILE: Preferences --

Let the user specify some general preferences

Definition at line 308 of file textRouter.py.

00308                                                   :
        """Let the user specify some general preferences"""

        inputDetails = [["defaultDirectory", self.strs["genPrefs"]["defDirP"],\
                         self.strs["genPrefs"]["defDirH"],\
                         self.generalPrefs["defaultDirectory"], 1],

                        ["tmpFile", self.strs["genPrefs"]["tmpFileP"], \
                         self.strs["genPrefs"]["tmpFileH"],
                         self.generalPrefs["tmpFile"], 1],
                        
                        ["alwaysClear", self.strs["genPrefs"]["aClrP"], \
                         self.strs["genPrefs"]["aClrH"],
                         self.generalPrefs["alwaysClear"], 4],
                        
                        ["autoSaveConfig", self.strs["genPrefs"]["aSaveP"], \
                         self.strs["genPrefs"]["aSaveH"], \
                         self.generalPrefs["autoSaveConfig"], 4],
                        
                        ["autoLoadTextFile", self.strs["genPrefs"]["aLdTxtP"], \
                         self.strs["genPrefs"]["aLdTxtH"], \
                         self.generalPrefs["autoLoadTextFile"], 4 ],
                        
                        ["autoSaveTextFile", self.strs["genPrefs"]["aSvTxtP"], \
                         self.strs["genPrefs"]["aSvTxtH"], \
                         self.generalPrefs["autoSaveTextFile"], 4 ],
                        
                        ["undoHistorySize", self.strs["genPrefs"]["undoP"], \
                         self.strs["genPrefs"]["undoH"], \
                         self.generalPrefs["undoHistorySize"], 2],
                        
                        ["paragraphWidth", self.strs["genPrefs"]["pWdthP"], \
                         self.strs["genPrefs"]["pWdthH"], \
                         self.generalPrefs["paragraphWidth"], 2],
                        
                        ["useProxy", self.strs["genPrefs"]["usePxyP"], \
                         self.strs["genPrefs"]["usePxyH"], \
                         self.generalPrefs["useProxy"], 4],

                        ["proxyServer", self.strs["genPrefs"]["pxyServP"], \
                         self.strs["genPrefs"]["pxyServH"], \
                         self.generalPrefs["proxyServer"], 1],

                        ["proxyPort", self.strs["genPrefs"]["pxyPortP"], \
                         self.strs["genPrefs"]["pxyPortH"], \
                         self.generalPrefs["proxyPort"], 2],

                        ]

        c_useProxy = self.generalPrefs["useProxy"]
        c_proxyServer = self.generalPrefs["proxyServer"]
        c_proxyPort = self.generalPrefs["proxyPort"]
        
        self.showPreferencesScreen(self.generalPrefs, inputDetails, "Main Preferences", "General preferences updated.")

        # re-generate xmlrpclib server objects if any of the proxy settings has changed
        if self.generalPrefs["useProxy"] != c_useProxy or \
           self.generalPrefs["proxyServer"] != c_proxyServer or \
           self.generalPrefs["proxyPort"] != c_proxyPort:
            # here we really need to regenertate all the settings, but that ain't done yet
            print "changed in proxy settings detected, redoing HTTP req objects"
        

    
    def on_close(self, event):


Generated by  Doxygen 1.6.0   Back to index