Giter Site home page Giter Site logo

Comments (5)

vtjnash avatar vtjnash commented on July 20, 2024

The "proper" way to set it is s[:value] = 7. The existence of value is a mistake in GAccessor, although the lack thereof is also a deficiency in GAccessor :)

edit: why doesn't it have a value property?! oh well, i guess it's just an issue with GAccessor. Since G_ is still in beta form, it's not really that surprising right now :/

from gtk.jl.

timholy avatar timholy commented on July 20, 2024

The "proper" way to set it is s[:value] = 7.

That's what I assumed too, but annoyingly GtkScale doesn't have a value property.

from gtk.jl.

sbrisson avatar sbrisson commented on July 20, 2024

so is there a consensus on the way to set the value of a scale?

from gtk.jl.

tknopp avatar tknopp commented on July 20, 2024

Yes. This is always done using an gtkadjustment

from gtk.jl.

tknopp avatar tknopp commented on July 20, 2024

@sbrisson: Have a look at:

https://github.com/JuliaGraphics/Gtk.jl/blob/master/test/gui.jl#L421

this file is actually in many cases the best documentation.

In my project I use GtkBuilder and therefore my code only touches GtkAdjustments while the Scales are all in the UI file. The link between Scale and Adjustment can be done in Glade without any code involved.

from gtk.jl.

Related Issues (20)

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.