MyTetra Share
Делитесь знаниями!
wx.App - аргументы
Время создания: 09.06.2017 22:55
Раздел: Python - wx - Manual - Cody Precord - WxPython Application Development Cookbook - 1 Starting Points
Запись: xintrea/mytetra_db_mcold/master/base/1497038142iz2vf9r84d/text.html на

wx.App(redirect=False, filename=None, useBestVisual=False,


import wx

class MyApp(wx.App):
def OnInit(self):
"Hello wxPython", "wxApp")
return True

__name__ == "__main__":
app = MyApp(
True, 'test.txt', True, True) # записываем вывод в test.txt

The four optional keyword arguments are as follows:

- redirect: If set to True, stdout is redirected to a debug window

- filename: If redirect is True and this is not None, then stdout can be redirected

to a file specified by this argument

- useBestVisual: This specifies whether the application should try to use the best

visuals provided by the underlying toolkit. (This has no effect on most systems.)

- clearSigInt: Setting this to True will allow the application to be terminated by

pressing Ctrl+C from the command line.

MyTetra Share v.0.58
Яндекс индекс цитирования