在Scrollable Window中显示完整字符串,wxpython?

时间:2015-08-11 17:14:05

标签: user-interface wxpython

 def Object(self, event):

         choices=("Solar System","Nebula","Galaxy","Star")      
         dlg = wx.SingleChoiceDialog(self,'Please select the desired object: ','Object Type',choices , wx.CHOICEDLG_STYLE)
         dlg.ShowModal()
         result = dlg.GetStringSelection()
         dlg.Destroy()
         userObject = str(result)
         if userObject == 'Solar System':
            solarsys=pandas.read_csv('Teacher_Astronomy_Database.csv', sep=",", usecols=(1,6,7,8,9,10,11,12,13))
             solarSys=str(solarsys)
             objDisplay = 'Solar System Information'
             showInfo=wx.lib.dialogs.ScrolledMessageDialog(self,solarSys, objDisplay)
             showInfo.ShowModal()

代码有效,但是当可滚动窗口出现时,不会打印完整的字符串。我想使窗口更大以容纳列或以某种方式强制它在窗口中显示整个字符串。有关如何做到这一点的任何建议吗?

0 个答案:

没有答案