Jul-19-2017, 11:59 AM
I'm brand new to Python, but I have experience with creating all types of all types of code. Because of this, I just find indexes or the small bits of info I need to get what I want done.
My main problem seems to be my overall idea of how python works. Or I'm just not sure how to get it to work how I'm used to.
My goal is to have very simplistic menus, all of which have the same background. the background will be dynamic relating to the current menu, and it'll move a number of ways. As the user transitions between menus the background continues to operate independently and is constantly updated and moving.
Because I have say, 11 menus, I'm not sure how I keep a background "process" going.
I thought I could create a global menu, then call up individual menus. But the global menu seems to stop.
On top of this, I've created a Def for clicking the mouse button up or down. Because it'll be used in every menu. When I try to use it in any menu, the only thing that becomes active is the mouse function.
How can I have a containing menu, that can switch between menus, that can call a function any time without interrupting anything?
I know I'm probably not asking the right way for the answer I need.
I'm pretty sure it goes to how the actual Def is written for my mouse click(s), but how do I get the mouse to work everywhere without writing the code everywhere?
Not sure if this helps any way, but, this is what I have for my imports right now
My main problem seems to be my overall idea of how python works. Or I'm just not sure how to get it to work how I'm used to.
My goal is to have very simplistic menus, all of which have the same background. the background will be dynamic relating to the current menu, and it'll move a number of ways. As the user transitions between menus the background continues to operate independently and is constantly updated and moving.
Because I have say, 11 menus, I'm not sure how I keep a background "process" going.
I thought I could create a global menu, then call up individual menus. But the global menu seems to stop.
On top of this, I've created a Def for clicking the mouse button up or down. Because it'll be used in every menu. When I try to use it in any menu, the only thing that becomes active is the mouse function.
How can I have a containing menu, that can switch between menus, that can call a function any time without interrupting anything?
I know I'm probably not asking the right way for the answer I need.
I'm pretty sure it goes to how the actual Def is written for my mouse click(s), but how do I get the mouse to work everywhere without writing the code everywhere?
Not sure if this helps any way, but, this is what I have for my imports right now
import locale import sys, os import winsound import json import pygame import random from tkinter import * from tkinter import messagebox from datetime import datetime from PIL import Image, ImageFilter