代码保存后运行时显示 Warning (from warnings module): File "C:Python27mygirlf.py", line 22 self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize ) wxPyDeprecationWarning: Call to deprecated item. Use SetSizeHints instead. Warning (from warnings module): File

走路蚂蚁 wxPython 环境搭建及可... 最后由 极客学院_吕布 于2018年02月27日回复

  • 1 回答
  • 3.5k 浏览

====================== RESTART: C:Python27mygirlf.py ======================

Warning (from warnings module):

  File "C:Python27mygirlf.py", line 22

    self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )

wxPyDeprecationWarning: Call to deprecated item. Use SetSizeHints instead.

Warning (from warnings module):

  File "C:Python27mygirlf.py", line 39

    self.m_menu11.AppendItem( self.m_menuItem2 )

wxPyDeprecationWarning: Call to deprecated item. Use Append instead.