Comments (5)
Sounds cool. If you have some code that gets started and submit it as a PR, I'd be happy to advise on how to finish it off.
from gtkreactive.jl.
Your "silly" approach may not be so silly: http://stackoverflow.com/questions/41598292/gtk-time-picker-widget
from gtkreactive.jl.
Alas, now I really wish I could get that orientation glitch to work for the spinbutton I "made"... The vertical orientation really makes sense in this context.
from gtkreactive.jl.
So while life does go on, one feature the above solution lacks is a single Instant
behind the three widgets (in the specific case of hours:minutes:seconds, but everything here can be extended to any combination and number of temporal units). What I mean is that the 3 widgets should affect a single Instant
, that then should parse into the 3 temporal units, and finally update the displays on the 3 widgets.
This structure would result in nifty behaviors such as:
- Scrolling up (in the, say, vertical orientation) in the seconds widget, all the way up to "60", and then it will magically nullify and the minutes widget will go up one unit (potentially affecting the hours widget). And vice versa (scrolling down).
- In addition, this structure prohibits any impossible temporal combinations (e.g. -33:68:172) in a simpler way than limiting the scroll to 0--59. This is especially cool if the user wants to include dates (think about the 31 of February).
- Not to get ahead of myself, but this could (easily?) be extended to other units, such as tons:kg:grams.
from gtkreactive.jl.
Sheesh, I tried to just use existing spinbutton
widgets, but I'm running into (obvious) chicken-and-the-egg problems: updating one of the three widgets (hh:mm:ss) updates the main time, which update all three widgets sequentially, which then goes into an infinite loop...
I guess I should attempt to write a whole new type (like Player
) and use all the basic Gtk
functions...
from gtkreactive.jl.
Related Issues (20)
- drawing.jl Cairo/Canvas error HOT 5
- Key event handling
- [Help] Connect textbox signal to button label HOT 2
- TagBot trigger issue HOT 2
- Running from function HOT 1
- Dialog pops up when function defined HOT 3
- The example at: https://juliagizmos.github.io/GtkReactive.jl/latest/controls.html no longer works. HOT 1
- spinbutton support for other ranges than UnitRange{Int64}
- GtkReactive's dropdown doesn't work with glade's combobox HOT 1
- Progress bar HOT 2
- How to include a interactive plot in a window? HOT 3
- Is it possible to draw three different lines with three different colors? HOT 1
- Machine-specific test failures HOT 1
- Building in Julia v 1.0.0? HOT 3
- Julia 0.6 branch HOT 3
- A first example: GUI controls - namespace problem HOT 1
- Minor syntax problem with GtkWindowLeaf attributes HOT 1
- canvas width and height = 1 and window blank on MacOS
- canvas proportions disrupted when image on canvas in box with button widget
- drawing.jl example halts if wrapped in a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtkreactive.jl.