Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
  Question Thread: Stopping a parent function from a nested function?
Post: Stopping a parent function from a nested function?

Here's an example: # I want to stop function parent() from function child(). def parent(): def child(): print('A') returnparent # Or something along the lines child() print('B') parent(...
wallgraffiti General Coding Help 1 3,684 May-02-2021, 11:27 AM
    Thread: Pausing and returning to function?
Post: Pausing and returning to function?

The basic idea I have is something like this, but with actual python builtins: def somefunc(): print('Something') pause print('Other Thing') somefunc() somefunc()Expected output: Output:S...
wallgraffiti General Coding Help 1 2,166 Apr-29-2021, 05:08 PM
    Thread: Getting parent variables in nested functions
Post: Getting parent variables in nested functions

I made my own custom assembly language in Python for fun, and want to implement it into a GUI. I am in the process of creating a library version of it which allow for giving it functions as input and ...
wallgraffiti General Coding Help 1 2,147 Jan-30-2021, 02:59 PM
    Thread: Compiler
Post: Compiler

So. Say I'm making a compiled language in Python (compiled because it makes up for the slowness of an interpreted language like Python). How would I go about generating machine/bytecode that does what...
wallgraffiti General Coding Help 3 2,309 Aug-20-2020, 09:26 PM
    Thread: Weird function defaults error?
Post: RE: Weird function defaults error?

Ahhhh. I don't understand why Python would be designed that way, but thanks anyway!
wallgraffiti General Coding Help 5 2,182 Aug-07-2020, 03:13 PM
    Thread: Weird function defaults error?
Post: Weird function defaults error?

So, I'm making a blockchain module, and made a function that adds a new block object to a given list. I don't understand anything here so can't give much context. [Image: https://i.imgur.com/Txb8Chg....
wallgraffiti General Coding Help 5 2,182 Aug-07-2020, 03:00 PM
    Thread: Checking any key
Post: RE: Checking any key

(Aug-01-2020, 09:14 AM)michael1789 Wrote: for event in pygame.event.get(): if event.type == pygame.KEYDOWN: run_your_animation() ## whatever you want the key to trigger I'm n...
wallgraffiti Game Development 3 2,443 Aug-02-2020, 09:42 AM
    Thread: Tkinter having problems with packing labels?
Post: Tkinter having problems with packing labels?

Code: import tkinter as tk from urllib.request import urlopen root=tk.Tk() pagestuff=[] pagestuff.append(tk.Label(root, text="This is a test.")) for i in pagestuff: i.pack(anchor=tk.NW) def g...
wallgraffiti GUI 0 1,546 Aug-02-2020, 09:26 AM
    Thread: Checking any key
Post: Checking any key

So I'm making a game with my own animation system, and i'm using the keyboard module for key presses. I need to check if any key is pressed. No key in specific, like, I need to check if a key is being...
wallgraffiti Game Development 3 2,443 Jul-30-2020, 10:12 AM
    Thread: Rounding to the nearest eight
Post: RE: Rounding to the nearest eight

Thanks! That worked.
wallgraffiti General Coding Help 2 2,089 Jul-15-2020, 06:05 PM
    Thread: Rounding to the nearest eight
Post: Rounding to the nearest eight

Basically, I just need to round a number to the nearest eight and by my research the round() function cannot do that.
wallgraffiti General Coding Help 2 2,089 Jul-15-2020, 05:30 PM

User Panel Messages

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