Don't allow demos that are known to still crash on OS X to be run.
Fix filebrowsebutton overlap. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -93,6 +93,10 @@ class TestPanel(wxPanel):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
|
if wxPlatform == "__WXMAC__":
|
||||||
|
wxMessageBox("This demo currently fails on the Mac. The problem is being looked into...", "Sorry")
|
||||||
|
return
|
||||||
|
|
||||||
win = TestPanel(nb, log)
|
win = TestPanel(nb, log)
|
||||||
return win
|
return win
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ class TestPanel(wxPanel):
|
|||||||
if i not in ['eclouds', 'logo']]
|
if i not in ['eclouds', 'logo']]
|
||||||
|
|
||||||
self.throbbers['plain']['throbber'] = Throbber(self, -1,
|
self.throbbers['plain']['throbber'] = Throbber(self, -1,
|
||||||
images, #size=(36, 36),
|
images, size=(36, 36),
|
||||||
frameDelay = 0.1)
|
frameDelay = 0.1)
|
||||||
self.throbbers['reverse']['throbber'] = Throbber(self, -1, images, #size=(36, 36),
|
self.throbbers['reverse']['throbber'] = Throbber(self, -1, images, #size=(36, 36),
|
||||||
frameDelay = 0.07)
|
frameDelay = 0.07)
|
||||||
@@ -79,8 +79,7 @@ class TestPanel(wxPanel):
|
|||||||
|
|
||||||
EVT_LEFT_DOWN(self.otherThrobber, self.OnClickThrobber)
|
EVT_LEFT_DOWN(self.otherThrobber, self.OnClickThrobber)
|
||||||
|
|
||||||
staticBox = wxStaticBox(self, -1, "")
|
box = wxBoxSizer(wxVERTICAL)
|
||||||
box = wxStaticBoxSizer(staticBox)
|
|
||||||
sizer = RowColSizer()
|
sizer = RowColSizer()
|
||||||
box.Add(sizer, 1, wxEXPAND|wxALL, 5)
|
box.Add(sizer, 1, wxEXPAND|wxALL, 5)
|
||||||
sizer.AddGrowableCol(1)
|
sizer.AddGrowableCol(1)
|
||||||
@@ -150,8 +149,13 @@ class TestPanel(wxPanel):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
win = TestPanel(nb, log)
|
if wxPlatform == "__WXMAC__":
|
||||||
return win
|
wxMessageBox("This demo currently fails on the Mac, I think because of the lack of EVT_WINDOW_DESTROY...",
|
||||||
|
"Sorry")
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
win = TestPanel(nb, log)
|
||||||
|
return win
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -89,6 +89,10 @@ class SimpleView(wxPanel):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
|
if wxPlatform == "__WXMAC__":
|
||||||
|
wxMessageBox("This demo currently fails on the Mac. The problem is being looked into...", "Sorry")
|
||||||
|
return
|
||||||
|
|
||||||
if 1:
|
if 1:
|
||||||
win = wxDynamicSashWindow(nb, -1, style = 0
|
win = wxDynamicSashWindow(nb, -1, style = 0
|
||||||
| wxCLIP_CHILDREN
|
| wxCLIP_CHILDREN
|
||||||
@@ -149,3 +153,10 @@ You will need to set the scrollbars' event handler at three times:
|
|||||||
</ul>
|
</ul>
|
||||||
</body></html>
|
</body></html>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import sys,os
|
||||||
|
import run
|
||||||
|
run.main(['', os.path.basename(sys.argv[0])])
|
||||||
|
|
||||||
|
@@ -203,6 +203,10 @@ class TestValidateDialog(wxDialog):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
|
if wxPlatform == "__WXMAC__":
|
||||||
|
wxMessageBox("This demo currently fails on the Mac. The problem is being looked into...", "Sorry")
|
||||||
|
return
|
||||||
|
|
||||||
win = TestValidatorPanel(nb)
|
win = TestValidatorPanel(nb)
|
||||||
return win
|
return win
|
||||||
|
|
||||||
@@ -210,12 +214,6 @@ def runTest(frame, nb, log):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
overview = """\
|
overview = """\
|
||||||
wxValidator is the base class for a family of validator classes that mediate between a class of control, and application data.
|
wxValidator is the base class for a family of validator classes that mediate between a class of control, and application data.
|
||||||
|
|
||||||
@@ -230,3 +228,11 @@ A validator has three major roles:
|
|||||||
Validators can be plugged into controls dynamically.
|
Validators can be plugged into controls dynamically.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import sys,os
|
||||||
|
import run
|
||||||
|
run.main(['', os.path.basename(sys.argv[0])])
|
||||||
|
|
||||||
|
@@ -99,7 +99,7 @@ class FileBrowseButton(wxPanel):
|
|||||||
box.Add( self.textControl, 1, wxLEFT|wxCENTER, 5)
|
box.Add( self.textControl, 1, wxLEFT|wxCENTER, 5)
|
||||||
|
|
||||||
self.browseButton = self.createBrowseButton()
|
self.browseButton = self.createBrowseButton()
|
||||||
box.Add( self.browseButton, 0, wxCENTER)
|
box.Add( self.browseButton, 0, wxLEFT|wxCENTER, 5)
|
||||||
|
|
||||||
# add a border around the whole thing and resize the panel to fit
|
# add a border around the whole thing and resize the panel to fit
|
||||||
outsidebox = wxBoxSizer(wxVERTICAL)
|
outsidebox = wxBoxSizer(wxVERTICAL)
|
||||||
|
Reference in New Issue
Block a user