Giter Site home page Giter Site logo

gtk_help's Introduction

My question: In the "Example_Glade.py + Example_Glade.glade" example, why does the ScrolledWindow not expand to full display the contents of the TreeView widget? What do I need to do to correct this?

Files

There are 2 programs that do the same thing here.

#1: Example_GPT.py

  • This was written by ChatGPT as an example to get me started. This works and the TreeView is fully displayed.

#2: Example_Glade.py + Example_Glade.glade

  • This was written by me using Glade for the UI. This works, but the ScrolledWindow is not expanded to fully display the contents of the TreeView widget.

Screenshots:

Example_GPT.py (after launching it)

  • screenshot

Example_Glade.py (after launching it)

  • screenshot

Example_Glade.py (after launching it, then manually expanding the window)

  • screenshot

Notes:

I realize that I can remove the ScrolledWindow and just have the TreeView in my Glade example, which would then full display the TreeView. While this is almost what I want, I would still like to have a ScrolledWindow in order to get scrollbars in case there is a lot of data or the filenames are really large and would scroll off the screen. Ultimately, this was just an example, and I'm looking to create something with more columns which may necessitate a horizontal scrollbar.

Any suggestions on what I'm doing wrong in Glade or if there is a way to set the ScrolledWindow size based on the fully displayed TreeView size or any other solutions would be most appreciated.

gtk_help's People

Contributors

bsfema avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.