Python Forum
[Tkinter] arrow key selection for menu
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] arrow key selection for menu
#3
I was meshing together anything I could find to make things work. I ended up settling on nothing but TKINTER.

pygame did not have a good menu or grid system built in. The only thing pygame has is a border option that tkinter does not have. But I may be able to side step that by using a background with the border and then overlaying the button grid arrays on top of it using only TKINTER.

I am only interested in using tkinter for the button actions as that is the only way I can get the buttons to layout like I am wanting.

Off hand the only methodology I can think of is to assign a numerical weight to each directional key press and then the value of x which the keypresses adjust equals a set look of the menu screen. The menu would appear to change with each keypress but you are really changing a mathematical value that sets the entire screens look. I just need to test the idea to even see if it is viable or not.

I am not aware of any other modules or libraries in python I can use to power button driven menu interface. If there are do please let me know so that I can do further research. With what almost a million individual libraries, it is quite possible there exists one written specifically for what I need that I am unaware of.

(Apr-13-2021, 04:33 PM)Yoriz Wrote: Is this a tkinter problem or pygame?
Is it necessary to try mixing tkinter and pygame together because I don't think they play together nicely?
Reply


Messages In This Thread
arrow key selection for menu - by knoxvilles_joker - Apr-13-2021, 03:09 PM
RE: arrow key selection for menu - by Yoriz - Apr-13-2021, 04:33 PM
RE: arrow key selection for menu - by knoxvilles_joker - Apr-13-2021, 11:09 PM
RE: arrow key selection for menu - by Yoriz - Apr-14-2021, 06:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Turtle. Pointers of the "arrow" direction of the vector. roomONmoon 1 776 Dec-09-2023, 11:49 PM
Last Post: deanhystad
  How to move in entries using the arrow keys by applying the bind and focus? pymn 4 4,950 Apr-06-2022, 04:29 AM
Last Post: pymn

Forum Jump:

User Panel Messages

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