我有10個按鈕,它們對應於相同的方法。我將如何檢查在相應的方法中點擊了哪個按鈕?我試圖檢查列表中通過下面的代碼特定按鈕的按下按鈕,但我得到分段錯誤: for i in range(0,10):
if button_list[i].clicked():
break
break
#operation with respect to the button clicked
我想繪製與開羅在gtk3 scatterplot。首先,我在這裏使用示例:http://zetcode.com/tutorials/cairographicstutorial/ 它們用gtk2成功編譯,但不顯示圖像。他們不用gtk3編譯,但給出以下錯誤: example.c: In function ‘on_expose_event’:
example.c:17:31: error: ‘GtkW