#kivy

/

      • lichenx1
        tshirtman, would you mind pointing me in the right direction for that numeric control, holding the button down will constantly change the value?
      • temporarily schedule a clock to increment the value?
      • Fuyou
        lichenx1, what event you have function bind?
      • e.g. you want on_release instead of on_press ?
      • lichenx1
        basically going for if you press a button down and hold it, it increments a value
      • Fuyou
        ah, so you want to achieve hold events, not other way around
      • Yeah, then I guess you can a schedule a function on_press that will increment value and re-schedule itself while button state is down or something like that
      • Probably there are better approaches too
      • or maybe just schedule an interval function and just unschedule it on_release
      • LogicalDash has quit
      • LaunchDirector has quit
      • Humean joined the channel
      • erm3nda has quit
      • tshirtman
        yes, that's the idea, though you have to be careful about a few things, you certainly want always_release_outside to be True to avoid locking a constant increment, and you also want to make sure you don't schedule multiple times if there is more than one touch on the button (not an issue in a mouse setup, but could be in a multitouch env)
      • lichenx1: ^
      • i mean always_release, not always_release_outside (which is not a thing)
      • you'll certainly want the increment not to be constant, but to depend either on the absolute value, or the time the button was held
      • (the latter is probably better, but i didn't look on UX research on that, it just seems more common)
      • lichenx1
        Thanks I'll give it a try
      • toxync16 joined the channel
      • raoul11 joined the channel
      • raoul11 has quit
      • nomic has quit
      • Aritodo
        hmm, is there a nice way to have some code execute after an if/else block only if one of the if's or elif's was true? basically... if the last else was reached, dont run the code
      • right now im doing it with an extra variable that is set to false at the start, and each if statement sets it to true, then another if statement afterward checks it
      • seems kinda clunky, and like there should be a better way
      • i can do else: return, if its in its own function, might be the best way
      • haha, there's a 'goto' library, that would actually solve it too
      • doesnt seem to be in python3 tho, heh
      • Humean has quit
      • tshirtman
        Aritodo: i'd much rather use a flag like you do than using goto
      • but you could use (abuse?) exceptions to do what you want
      • Aritodo
        i as thinking about that too, and it might make sense even - have the else clause throw the exception
      • dont think it would classify as 'abuse' in my current code either, since it would basically be a 'match not found' error
      • tshirtman
        :)
      • LV joined the channel
      • Lordvan_ has quit
      • LaunchDirector joined the channel
      • toxync16- joined the channel
      • Xav83 joined the channel
      • kuzeyron joined the channel
      • Fuyou has quit
      • Fuyou joined the channel
      • phiofx joined the channel
      • phiofx has quit
      • phiofx joined the channel
      • phiofx has quit
      • GinFuyou joined the channel
      • Fuyou has quit
      • Haudegen joined the channel
      • jb1123 joined the channel
      • Fuyou joined the channel
      • abhishekg5 joined the channel
      • GinFuyou has quit
      • Frank joined the channel
      • Fuyou has quit
      • LogicalDash joined the channel
      • abhishekg5 has quit
      • Xav83 has quit
      • jb1123 has quit
      • lichenx1 has quit
      • nomic joined the channel
      • nomic has quit
      • nomic joined the channel
      • halp has quit
      • halp joined the channel
      • nomic has quit
      • abhishekg5 joined the channel
      • Humean joined the channel
      • filiperibeiro joined the channel
      • filiperibeiro has quit
      • halp has quit
      • Xav83 joined the channel
      • juzzuj_ is now known as juzzuj
      • Fuyou joined the channel
      • raoul11 joined the channel
      • ghost43 has quit
      • ghost43 joined the channel
      • Spacey joined the channel
      • toxync16- has quit
      • Spacey has quit
      • Haudegen has quit
      • LV is now known as LordVan
      • Frank has quit
      • Spacey joined the channel
      • Humean has quit
      • Haudegen joined the channel
      • eribol joined the channel
      • nomic joined the channel
      • abhishekg5 has quit
      • kvuser1 joined the channel
      • kvuser1
        Hi. Is it better to install kivy.deps.glew or kivy.deps.angle if I use python-3.6.5-amd64 on windows ?
      • raoul11 has quit
      • kvuser1 has quit
      • beroots3 joined the channel
      • beroots3 has left the channel
      • jb1123 joined the channel
      • BeRoots joined the channel
      • BeRoots
        Hi. Sorry for the message as kvuser1 before but I forgot to login. So I restart my question. Is it better to install kivy.deps.glew or kivy.deps.angle if I use python-3.6.5-amd64 on windows?
      • Hi. Sorry for the message as kvuser1 before but I forgot to login. And sorry to google translate to send me a not translated paste of the previous message. So I restart my question. Is it better to install kivy.deps.glew or kivy.deps.angle if I use python-3.6.5-amd64 on windows?
      • Ok. Chrome translate is enable and my message is automaticly translate after is sent. lol
      • dolang
        i haven't tried both, honestly. but ANGLE is the newer addition iirc and translates to DirectX. so i guess that's a good choice if you don't want support for older versions
      • nomic has quit
      • i'm sure there are others here who can give you a better answer, though
      • dessant joined the channel
      • ah, found the original PR, if you're curious: https://github.com/kivy/kivy/pull/4343
      • BeRoots
        Thank you dolang. ;)
      • dolang
        np
      • ibrahima joined the channel
      • ibrahima
        hello
      • LogicalDash has quit
      • jb1123 has quit
      • Haudegen has quit