Esempio n. 1
0
def runTest(frame, nb, log):
    ##     if wx.Platform == "__WXMAC__":
    ##         from wx.lib.msgpanel import MessagePanel
    ##         win = MessagePanel(nb, 'This demo currently fails on the Mac. The problem is being looked into...',
    ##                            'Sorry', wx.ICON_WARNING)
    ##         return win

    if 1:
        win = gizmos.DynamicSashWindow(
            nb,
            -1,
            style=wx.CLIP_CHILDREN
            #| wxDS_MANAGE_SCROLLBARS
            #| wxDS_DRAG_CORNER
        )

        win.SetFont(
            wx.Font(10, wx.FONTFAMILY_MODERN, wx.FONTSTYLE_NORMAL,
                    wx.FONTWEIGHT_NORMAL))
        view = TestView(win, -1, log)
        view.SetText(sampleText)
    else:
        win = wx.DynamicSashWindow(nb, -1)
        view = SimpleView(win, -1, log)
    return win
Esempio n. 2
0
    def DoCreateResource(self):
        assert self.GetInstance() is None

        w = gizmos.DynamicSashWindow(self.GetParentAsWindow(), self.GetID(),
                                     self.GetPosition(), self.GetSize(),
                                     self.GetStyle(), self.GetName())

        self.SetupWindow(w)
        return w