PythonでGtk+3を試してみます。
スクロールウィンドウコンテナ内の「Gtk.TreeView」を入力ボックスとともにグリッドウィンドウに追加しようとしています。問題は、スクロール領域が小さいため、スクロールウィンドウ/TreeViewがほとんど表示されないことです。出力の画像は次のとおりです。
関連するコードは次のとおりです。
scroll = Gtk.ScrolledWindow() # Create scroll window
scroll.add(self.MatchTree) # Adds the TreeView to the scroll container
grid = Gtk.Grid() # Create grid container
self.add(Grid) # Add grid to window (self)
Grid.add(scroll) # Add scroll window to grid
Grid.attach_next_to(self.Entry, scroll, Gtk.PositionType.BOTTOM, 1, 1) # Attach entry to bottom of grid.
では、スクロール領域のサイズをどのように制御しますか?
乾杯、フィル