class PHPCtrl(CodeEditor.CodeCtrl):
- def __init__(self, parent, ID = -1, style = wx.NO_FULL_REPAINT_ON_RESIZE):
- CodeEditor.CodeCtrl.__init__(self, parent, ID, style)
- self.SetLexer(wx.stc.STC_LEX_HTML)
+ def __init__(self, parent, id=-1, style=wx.NO_FULL_REPAINT_ON_RESIZE):
+ CodeEditor.CodeCtrl.__init__(self, parent, id, style)
+ self.SetLexer(wx.stc.STC_LEX_PHP)
self.SetStyleBits(7)
self.SetKeyWords(4, string.join(PHPKEYWORDS))
self.SetProperty("fold.html", "1")
# Icon Bitmaps - generated by encode_bitmaps.py
#----------------------------------------------------------------------------
from wx import ImageFromStream, BitmapFromImage
-from wx import EmptyIcon
import cStringIO
return ImageFromStream(stream)
def getPHPIcon():
- icon = EmptyIcon()
- icon.CopyFromBitmap(getPHPBitmap())
- return icon
+ return wx.IconFromBitmap(getPHPBitmap())