Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Input is not defined
Post: RE: Input is not defined
Without seeing all the code kind of hard to help. Here is a basic structure of moving objects in pygame.
import pygame
pygame.init()
window = pygame.display.set_mode((800,600))
clock = pygame.time.... |
|
menator01 |
Game Development |
3 |
232 |
Sep-06-2024, 12:57 PM |
|
|
Thread: Version 0.02 of the PySide6 Weather App
Post: Version 0.02 of the PySide6 Weather App
This version should work world wide. May have some bugs when it comes to the wind direction arrow. I've tried testing it and the rain.
To try it create a virtual environment and use pip to run the r... |
|
menator01 |
Code sharing |
0 |
139 |
Sep-05-2024, 01:01 PM |
|
|
Thread: PySide6 Movie Search
Post: PySide6 Movie Search
I re-write the movie search script if anyone would like to give it a try.
I've not uploaded to my github yet but, you can get it from my-python.org |
|
menator01 |
Code sharing |
0 |
120 |
Sep-03-2024, 02:32 AM |
|
|
Thread: Testing resolution for pygame window
Post: RE: Testing resolution for pygame window
@deanhystad
Was just testing resizing of game images based on screen resolution.
I found another way of doing it as the code I provided had errors. |
|
menator01 |
Game Development |
3 |
490 |
Aug-30-2024, 09:49 PM |
|
|
Thread: popup, text input with two readable buttons
Post: RE: popup, text input with two readable buttons
You may could do something like this. It's not the best approach but should give an idea.
import tkinter as tk
class Popup:
def __init__(self, parent):
self.parent = parent
labe... |
|
menator01 |
GUI |
7 |
498 |
Aug-27-2024, 06:59 PM |
|
|
Thread: Spammers
Post: Spammers
The spammers seem to be hitting the forum pretty hard the last week or so. |
|
menator01 |
Bar |
1 |
259 |
Aug-27-2024, 06:15 PM |
|
|
Thread: popup, text input with two readable buttons
Post: RE: popup, text input with two readable buttons
To be honest I would use tkinter. I can't see paying for something that I can get for free and seems to be easier to use.
Tkinter may be old but, is very easy to learn. |
|
menator01 |
GUI |
7 |
498 |
Aug-27-2024, 06:10 PM |
|
|
Thread: popup, text input with two readable buttons
Post: RE: popup, text input with two readable buttons
|
menator01 |
GUI |
7 |
498 |
Aug-27-2024, 05:31 PM |
|
|
Thread: os.path.exists fails with accented characters
Post: RE: os.path.exists fails with accented characters
Only way I could get True was to use pathlib. If I just used hardcode path I got False |
|
menator01 |
General Coding Help |
11 |
682 |
Aug-26-2024, 09:49 PM |
|
|
Thread: os.path.exists fails with accented characters
Post: RE: os.path.exists fails with accented characters
This works for me
from pathlib import Path
import os
# This sets a path to executing script
# if this is different then something like
# path = Path('/')
# file = 'path/to/my/file'
path = Path(__fi... |
|
menator01 |
General Coding Help |
11 |
682 |
Aug-26-2024, 09:12 PM |
|
|
Thread: installing an application on a Mac OS question
Post: RE: installing an application on a Mac OS question
I've not ever used a mac but, using pathlib to get the executing scripts path, should not matter what os you are using. An example gives the path of the executing script
from pathlib import Path
path... |
|
menator01 |
General Coding Help |
1 |
188 |
Aug-26-2024, 08:02 PM |
|
|
Thread: Autograder keeps kicking back my code
Post: RE: Autograder keeps kicking back my code
If this is homework no one will write the code for you. You will need to show what you have written and someone will help. On a side note, this is in the wrong category. Should be in the homework sect... |
|
menator01 |
General Coding Help |
2 |
83 |
Aug-23-2024, 11:50 PM |
|
|
Thread: customtkinter
Post: RE: customtkinter
|
menator01 |
GUI |
2 |
376 |
Aug-18-2024, 09:10 PM |
|
|
Thread: Loops and Child Attributes
Post: RE: Loops and Child Attributes
The link doesn't have any data |
|
menator01 |
General Coding Help |
7 |
795 |
Aug-16-2024, 02:43 AM |
|
|
Thread: Testing resolution for pygame window
Post: Testing resolution for pygame window
As the title says. Was just wondering if I could get some feedback on where the cyan square is placed on various screens.
On mine it's where I would expect. If the window is too big for the window clo... |
|
menator01 |
Game Development |
3 |
490 |
Aug-12-2024, 10:23 PM |
|
|
Thread: Continue Function for Loops in Python
Post: RE: Continue Function for Loops in Python
A basic example would be the for loop you are using
number = 5
for i in range(10):
if i == number: # If i is = number (5) don't print go to next
continue
print(i)output
Output:0
1
2
3
... |
|
menator01 |
General Coding Help |
5 |
393 |
Aug-12-2024, 06:49 AM |
|
|
Thread: pygame help
Post: RE: pygame help
I'm not going to try and go through all that code. I don't have the images and directories.
Here is a basic example of displaying text in pygame. The player health will decrease by 1 every 5 seconds.
... |
|
menator01 |
General Coding Help |
2 |
245 |
Aug-11-2024, 11:44 PM |
|
|
Thread: Pygame and buttons play
Post: Pygame and buttons play
Just playing around with making buttons in pygame and thought I would share
btn_class.py
import pygame
# Inialize pygame font
pygame.font.init()
# Create a sprite group
btn_sprites = pygame.sprite.... |
|
menator01 |
Code sharing |
0 |
178 |
Aug-11-2024, 11:15 PM |
|
|
Thread: Unique Tkinter Window
Post: RE: Unique Tkinter Window
I'm sure it can. I haven't done any procedural programming in a long time. I found that it's usually easier to use classes (for me anyway) All the controller class does is (in this case) get data from... |
|
menator01 |
General Coding Help |
11 |
658 |
Aug-11-2024, 05:03 AM |
|
|
Thread: Unique Tkinter Window
Post: RE: Unique Tkinter Window
What part you not understand and will try to explain? |
|
menator01 |
General Coding Help |
11 |
658 |
Aug-11-2024, 03:33 AM |