def OnDocumentChangeEncoding(win, event): ret = _getencoding() if ret: win.document.locale = ret common.set_encoding(win.document.locale) win.document.modified = True wx.CallAfter(win.editctrl.showTitle, win.document) wx.CallAfter(win.editctrl.showPageTitle, win.document)
def afteropenfile(win, filename): common.set_encoding(win.locale)
def savefiletext(win, stext): common.set_encoding(win.locale)
def fileopentext(win, stext): common.set_encoding(win.locale)
def on_document_enter(win, document): if document.edittype == 'edit': common.set_encoding(win.document.locale)
def on_document_enter(win, document): if document.edittype == "edit": common.set_encoding(win.document.locale)