Updates to doc/view modules and sample apps from ActiveGrid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,6 +53,7 @@ class TextDocument(wx.lib.docview.Document):
|
||||
docFile.write(view.GetValue())
|
||||
docFile.close()
|
||||
self.Modify(False)
|
||||
self.SetDocumentModificationDate()
|
||||
self.SetDocumentSaved(True)
|
||||
return True
|
||||
|
||||
@@ -64,6 +65,7 @@ class TextDocument(wx.lib.docview.Document):
|
||||
view.SetValue(data)
|
||||
self.SetFilename(filename, True)
|
||||
self.Modify(False)
|
||||
self.SetDocumentModificationDate()
|
||||
self.UpdateAllViews()
|
||||
self._savedYet = True
|
||||
return True
|
||||
@@ -979,8 +981,7 @@ class TextCtrl(wx.stc.StyledTextCtrl):
|
||||
self._font = None
|
||||
self._fontColor = None
|
||||
|
||||
self.SetVisiblePolicy(wx.stc.STC_VISIBLE_STRICT,0)
|
||||
self.SetYCaretPolicy(0, 0)
|
||||
self.SetVisiblePolicy(wx.stc.STC_VISIBLE_STRICT,1)
|
||||
|
||||
self.CmdKeyClear(wx.stc.STC_KEY_ADD, wx.stc.STC_SCMOD_CTRL)
|
||||
self.CmdKeyClear(wx.stc.STC_KEY_SUBTRACT, wx.stc.STC_SCMOD_CTRL)
|
||||
@@ -1220,7 +1221,6 @@ class TextCtrl(wx.stc.StyledTextCtrl):
|
||||
# Icon Bitmaps - generated by encode_bitmaps.py
|
||||
#----------------------------------------------------------------------------
|
||||
from wx import ImageFromStream, BitmapFromImage
|
||||
from wx import EmptyIcon
|
||||
import cStringIO
|
||||
|
||||
|
||||
@@ -1243,9 +1243,7 @@ def getTextImage():
|
||||
return ImageFromStream(stream)
|
||||
|
||||
def getTextIcon():
|
||||
icon = EmptyIcon()
|
||||
icon.CopyFromBitmap(getTextBitmap())
|
||||
return icon
|
||||
return wx.IconFromBitmap(getTextBitmap())
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user