Mageia Bugzilla – Attachment 6859 Details for
Bug 16397
Coban lacks execution bit and doesn't start due to bad handling of ascii in wxgtk
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
test for the wxPython issue
wxtest.py (text/x-python), 698 bytes, created by
Philippe Makowski
on 2015-07-21 00:51:19 CEST
(
hide
)
Description:
test for the wxPython issue
Filename:
MIME Type:
Creator:
Philippe Makowski
Created:
2015-07-21 00:51:19 CEST
Size:
698 bytes
patch
obsolete
>#!/usr/bin/env python ># -*- coding: utf-8 -*- ># ># wxtest.py ># > >import wx > >class Test(wx.App): > """Application principale""" > def OnInit(self): > # création de la fenêtre principale > frame = wx.Frame(None, wx.ID_ANY, u"Hello World") # A Frame is a top-level window. > menubar = wx.MenuBar() > fileMenu = wx.Menu() > fitem = fileMenu.Append(wx.ID_EXIT, u'ok', u'test ok') > baditem = fileMenu.Append(wx.ID_ANY, u'Raté', u'Test raté') > menubar.Append(fileMenu, u'&File') > frame.SetMenuBar(menubar) > frame.Show(True) > return True > > > >def main(): > app = Test(False) > app.MainLoop() > >if __name__ == '__main__': > main() >
#!/usr/bin/env python # -*- coding: utf-8 -*- # # wxtest.py # import wx class Test(wx.App): """Application principale""" def OnInit(self): # création de la fenêtre principale frame = wx.Frame(None, wx.ID_ANY, u"Hello World") # A Frame is a top-level window. menubar = wx.MenuBar() fileMenu = wx.Menu() fitem = fileMenu.Append(wx.ID_EXIT, u'ok', u'test ok') baditem = fileMenu.Append(wx.ID_ANY, u'Raté', u'Test raté') menubar.Append(fileMenu, u'&File') frame.SetMenuBar(menubar) frame.Show(True) return True def main(): app = Test(False) app.MainLoop() if __name__ == '__main__': main()
View Attachment As Raw
Actions:
View
Attachments on
bug 16397
: 6859