Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to create a delay for AI without freezing the GUI
Post: RE: How to create a delay for AI without freezing ...

Well, so I have changed my code so: class Program: def __init__(self): self.width = 1000 self.height = 800 self.panel_width = 200 #self.root = Tk() self....
kom2 GUI 8 6,193 May-04-2019, 02:06 PM
    Thread: How to create a delay for AI without freezing the GUI
Post: RE: How to create a delay for AI without freezing ...

Well I´m looking at the part "Example of adding a thread but still getting a error" but I have no idea how to suit it to my program. I have no buttons there and as I see, self.listbox.insert(tk.END, i...
kom2 GUI 8 6,193 May-04-2019, 01:55 PM
    Thread: How to create a delay for AI without freezing the GUI
Post: RE: How to create a delay for AI without freezing ...

So I have read the Threads Guide, but got stucked on this point: class Program: def __init__(self): self.width = 1000 self.height = 800 self.panel_width = 200 #se...
kom2 GUI 8 6,193 May-04-2019, 12:58 PM
    Thread: [split] What is a GUI's mainloop ?
Post: [split] What is a GUI's mainloop ?

what exactly is mainloop for? What is it´s purpose?
kom2 GUI 1 2,785 May-04-2019, 10:39 AM
    Thread: How to create a delay for AI without freezing the GUI
Post: How to create a delay for AI without freezing the ...

I want to create an AI move into my game, after the player does one. Is there any function I could use in order to let AI wait for few seconds before it makes a move? I already tried a canvas.after(),...
kom2 GUI 8 6,193 May-03-2019, 03:30 PM
    Thread: Moving with objects simultaneously
Post: Moving with objects simultaneously

Hello, I'm currently working on my project and stucked at this point: I want to create a canvas, where different objects will move (a lot of game NPCs). But whilst they are moving, I want to be able...
kom2 General Coding Help 1 3,038 Apr-20-2019, 06:02 PM
    Thread: Parameters for function in bind()
Post: Parameters for function in bind()

Hello, self.canvas.bind("<B1-Motion>", self.move I would like to call this function (self.move) also with some parameters, but I'm not sure, how to do it. This bind is inside a for loop, with ...
kom2 General Coding Help 1 2,286 Apr-18-2019, 03:53 PM
    Thread: Generating number of objects for a game
Post: Generating number of objects for a game

Hello! I've started working on my game in Python, using tkinter (so not any pygame or other gaming libraries). I have already made some steps in my plan, what to create and what should the overall ga...
kom2 General Coding Help 3 2,602 Apr-17-2019, 08:30 PM

User Panel Messages

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