0
A
回答
0
你應該只能夠訪問propertiesn-columns
和n-rows
。
可以使用這樣做:
cols = mytable.get_property('n-columns')
rows = mytable.get_property('n-rows')
0
您必須閱讀GTK屬性:
t = gtk.Table(myNumberOfRows, myNumberofCols)
t.get_property("n-rows") # number of rows in the table
t.get_property("n-columns") # number of cols in the table
0
在最新版本的PyGTK的你可以得到/通過table.props.n_columns
和table.props.n_rows
,設置這些值其中與get_property()
(在其他答案中提及)和set_property()
方法是同義詞。
相關問題
- 1. 在python中獲取svg文本大小
- 2. 在Python中獲取%ROOT%大小
- 3. 在Python中獲取文件大小?
- 4. 在Python中獲取顯示器大小
- 5. 刪除gtk.Table中的小部件?
- 6. python。獲取對象的大小
- 7. 如何在調整大小後在python-pillow中獲取圖像大小?
- 8. 在python中獲取窗口的位置和大小用Xlib
- 9. 試圖在Python中獲取.txt的大小
- 10. 在Python中獲取電影文件的大小
- 11. python:獲取緩衝區大小
- 12. python獲取unicode字符串大小
- 13. 在UIImageView中獲取圖像的大小
- 14. 在Scala 2.7.7中獲取Regex.MatchIterator的大小?
- 15. 在WinRT中獲取UIElement的大小
- 16. 在onCreate()中獲取按鈕的大小
- 17. 在RemoteViews中獲取ImageView的大小
- 18. 如何在iPhone中獲取圖像的大小(內存大小)?
- 19. 在python中取消大小寫
- 20. 在scapy中獲取數據包大小/ python
- 21. 在調整大小後獲取Gridster小部件的新大小
- 22. 獲取簇大小
- 23. 獲取Response.output大小?
- 24. 使用python-requests獲取文件大小,而只獲取標題
- 25. 如何在Android中獲取CardView大小?
- 26. 在VBA中獲取圖像大小?
- 27. 在Javascript中獲取max Data-Uri大小
- 28. 如何在Cassandra中獲取blob大小
- 29. 在os.walk中獲取文件大小
- 30. 在C中獲取FTP文件大小#