After on day test,I found this code:
class DefaultFrame(wx.Frame):
def __init__(self, *args, **kwds):
wx.Frame.__init__(self, None, title="Default Frame", style=wx.DEFAULT_FRAME_STYLE)
self.SetLayoutDirection(wx.Layout_LeftToRight)
if __name__ == '__main__':
django_init()
app = wx.App()
frame = DefaultFrame()
frame.Show()
app.MainLoop()
And result is below:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.