Python Forum
Problem with input after function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with input after function
#9
(Nov-29-2021, 09:38 PM)deanhystad Wrote: You should ask the author of the keyboard package. I don't understand why you are using the keyboard package at all.

Hi deanhystad, thank you for reply. I realy appreciated your tips about submit the question to package productor,
and i done it on github. I'm using the keyboard package for give to my menu, a little touch of "interactivity".

when menu page is loaded, the keyboard.wait() stand for user input for handle the preset key available
( arrow up, down and enter ) moving the cursor up and down in the menu,
printing the menu page again with moved cursor by user.

If i'dont use a menu like this, menu page could be very boring Cry

That's the reason why 'enter' key pressure need to be catched by keyboard module
because it's not a simple menu with free input from user.

Testing different solution the problem is also available even when i replace the 'enter' key with 'space' key for example,
because when I hit any key, hook(), on_press(), on_release() or any other function of keyboard package,
seems to catch the keys pressure and release, so i'll have two consecutive value even with one key pressure.
Using 'space' input isn't submited, but the values catched after one key pressure, is also double.

Thank you in advance for any other tips ( if you've )
Reply


Messages In This Thread
Problem with input after function - by luilong - Nov-27-2021, 08:14 PM
RE: Problem with input after function - by luilong - Nov-28-2021, 12:19 AM
RE: Problem with input after function - by ghoul - Nov-28-2021, 10:52 AM
RE: Problem with input after function - by luilong - Nov-28-2021, 11:13 PM
RE: Problem with input after function - by luilong - Nov-29-2021, 08:53 PM
RE: Problem with input after function - by luilong - Nov-29-2021, 10:55 PM
RE: Problem with input after function - by luilong - Dec-04-2021, 12:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  difference between forms of input a list to function akbarza 6 1,127 Feb-21-2024, 08:02 PM
Last Post: bterwijn
  problem in using input command akbarza 4 1,229 Oct-19-2023, 03:27 PM
Last Post: popejose
  problem in entering address of a file in input akbarza 0 687 Oct-18-2023, 08:16 AM
Last Post: akbarza
Information How to take url in telegram bot user input and put it as an argument in a function? askfriends 0 1,145 Dec-25-2022, 03:00 PM
Last Post: askfriends
  Showing an empty chart, then input data via function kgall89 0 999 Jun-02-2022, 01:53 AM
Last Post: kgall89
  input function question barryjo 12 2,804 Jan-18-2022, 12:11 AM
Last Post: barryjo
  function with 'self' input parameter errors out with and without 'self' called dford 12 3,235 Jan-15-2022, 06:07 PM
Last Post: deanhystad
  Exit function from nested function based on user input Turtle 5 2,977 Oct-10-2021, 12:55 AM
Last Post: Turtle
Star I'm getting syntax error while using input function in def. yecktmpmbyrv 1 2,005 Oct-06-2021, 09:39 AM
Last Post: menator01
  Input function cutting off commands at spaces. throwaway34 3 2,244 May-12-2021, 06:40 AM
Last Post: throwaway34

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020