Switched to using True/False in the wxPython lib and demo instead of
true/false or TRUE/FALSE to prepare for the new boolean type and constants being added to Python. Added code to wx.py to test for the existence of the new constants and to create suitable values if not present. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,9 +52,9 @@ class MyHtmlFilter(wxHtmlFilter):
|
||||
# This method decides if this filter is able to read the file
|
||||
def CanRead(self, fsfile):
|
||||
self.log.write("CanRead: %s\n" % fsfile.GetMimeType())
|
||||
return FALSE
|
||||
return False
|
||||
|
||||
# If CanRead returns true then this method is called to actually
|
||||
# If CanRead returns True then this method is called to actually
|
||||
# read the file and return the contents.
|
||||
def ReadFile(self, fsfile):
|
||||
return ""
|
||||
@@ -114,7 +114,7 @@ class TestHtmlPanel(wxPanel):
|
||||
|
||||
self.box.Add(subbox, 0, wxGROW)
|
||||
self.SetSizer(self.box)
|
||||
self.SetAutoLayout(true)
|
||||
self.SetAutoLayout(True)
|
||||
|
||||
# A button with this ID is created on the widget test page.
|
||||
EVT_BUTTON(self, wxID_OK, self.OnOk)
|
||||
|
Reference in New Issue
Block a user