Example #1
0
    def editFile(self, filename=None):
        """Edit a file"""
        if filename==None:
            filename = self.openFilename('conf')
        if not filename:
            return

        tf = TextEditor(parent=self,title=filename)
        tf.openFile(filename)
        tf.addFunction('Reload Config', self.reloadConfig)
        return
Example #2
0
 def showConfig(self):
     """Show current config"""
     t = TextEditor(parent=self)
     print self.p.__dict__
     t.openFile(self.p.conffile)
     return
Example #3
0
from Editor import TextEditor

if __name__ == '__main__':
    t = TextEditor()
    t.run()
Example #4
0
 def showConfig(self):
     """Show current config"""
     t = TextEditor(parent=self)
     print self.p.__dict__
     t.openFile(self.p.conffile)
     return