0
使用glade 3.8,我創建了一個hbox,並將該對象命名爲hboxvideo。 在我的程序中,我爲hbox視頻添加了繪圖區域。pygtk繪圖區不調用expose-event
self.hboxvideo = self.builder.get_object("hboxvideo")
self.video_drawing_area=gtk.DrawingArea()
self.hboxvideo.pack_start(self.video_drawing_area,True,True,0)
self.video_drawing_area.connect("expose-event", self.area_expose_cb)
問題是繪圖區域永遠不會發出信號「expose-event」。而且這些語句只有在主窗口被暴露之後纔會被調用。任何一個我如何解決這個問題?
由於提前, Thothadri