wx.RadioBox在触摸屏上没有响应

2024-05-29 00:28:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在为触摸屏编程,我有一个奇怪的现象,wx.RadioBox在触摸屏上没有响应。我的代码如下:

lblList = ['RCA Ouput', 'HDMI Output']     
        self.audioOptionsButton = wx.RadioBox(self,label = 'Select which output to use for audio,', pos = (50, 50), choices = lblList , majorDimension = 1, style = wx.RA_SPECIFY_ROWS)
        self.audioOptionsButton.SetForegroundColour(Styles.PANEL_TEXT_COLOR)
        self.audioOptionsButton.Bind(wx.EVT_RADIOBUTTON, self._setAudioOutput) 
        self.audioOptionsButton.Bind(wx.EVT_BUTTON, self._setAudioOutput)

我添加了额外的事件绑定,以尝试以不同的方式捕获事件,因为按钮正在工作

有没有其他人在触摸屏上遇到过这个问题


Tags: 代码selfbind编程事件evtwx现象

热门问题