Use python to open right click menu [duplicate] - python

This question already has answers here:
tips on Adding/creating a drop down selection box in pygame
(1 answer)
trying creating dropdown menu pygame, but got stuck
(1 answer)
Closed 5 months ago.
So i'm making a GUI with pygame, with some game elements that I need pygame to do.
But I need to make a context menu on right click.
It doesn't have to be in pygame, it could be a command in the os or sys modules. I just need a way to open one of these menus, and I can activate it on right click.
Sorry if my question is not clear, I really don't know how to explain it.

Related

How do I make an Apple style text box in Pygame? [duplicate]

This question already has answers here:
How can I create a text input box with Pygame?
(5 answers)
How to prompt user to open a file with python3?
(2 answers)
Closed last month.
I am trying to make a "macOS" style text box like this
text box I used in a "turtle" program.
However I am not sure how to make it.
For extra clarity I want to make a clean new gui not an messy old gui. Does not have to be separate window just look good.

How to get automatic stuff per second in my game [duplicate]

This question already has answers here:
Spawning multiple instances of the same object concurrently in python
(1 answer)
Is there a way to have different tick rates for differents parts of my code in pygame?
(1 answer)
Closed 9 months ago.
I am making a game in python using pygame in which you click a candy and you get candies. This game is similar to the famous game 'Cookie Clicker'. I've got the clicking part done but I have no idea how to do the auto candies per second. If anybody knows how to do this, please tell me.

Is there a way to close a window without quitting pygame [duplicate]

This question already exists:
Entry Field Question - Closing the Window but keeping Python Running [duplicate]
Closed 2 years ago.
I have tried looking around a lot for a solution from other questions but I am not sure I could accurately implement them into my program. So I decided to ask here.
Is there a simple way to close a window in pygame whilst keeping pygame opening and able to complete tasks?
I use:
pygame.quit()
But it quits the program.
Anyone got an idea?
do pygame.display.quit() to close the window without leaving pygame

Making a Python RTL Textbox in Tkinter [duplicate]

This question already has answers here:
How to set justification on Tkinter Text box
(4 answers)
Closed 6 years ago.
I am making a basic python Tkinter calculator and I need to know how to force the Textbox I have made to be Right to Left because that is what most calculators use. Is their a simple way to do this?
It is as simple as
justify='right'

Python: Is it possible to make a tkinter program on top of all windows? [duplicate]

This question already has answers here:
How to make a Tkinter window jump to the front?
(12 answers)
Closed 6 years ago.
is there any way to make a tkinter program on top of all windows? Like switching to a new window will not minimize or put the tkinter program back, thanks!
Yes. You just need to set the window manager attribute topmost:
mywindow.wm_attributes("-topmost", True)

Categories

Resources