Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: simple tkinter question function call not opening image
Post: RE: simple tkinter question function call not open...
i tried that and that isn't working either,i wasn't sure if it was the name of the image ,the path or what but i tried both as parameters when calling the function open_image(). but tkinter just opens... |
|
gr3yali3n |
GUI |
5 |
3,542 |
Aug-01-2022, 05:56 PM |
|
|
Thread: simple tkinter question function call not opening image
Post: simple tkinter question function call not opening ...
I had some free time and was messing tkinter again, i wanted to create a function to open a image so that i could simply call the function to get the image but The Image would not appear in the Frame ... |
|
gr3yali3n |
GUI |
5 |
3,542 |
Jul-31-2022, 07:40 PM |
|
|
Thread: writelines only writes one line to file
Post: RE: writelines only writes one line to file
(Dec-05-2021, 09:13 PM)menator01 Wrote: Maybe something like this:
#! /usr/bin/env python3
from itertools import permutations
string = 'poodle'
with open('test.txt', 'w') as file:
for mutate... |
|
gr3yali3n |
General Coding Help |
2 |
2,427 |
Dec-05-2021, 10:02 PM |
|
|
Thread: writelines only writes one line to file
Post: writelines only writes one line to file
i have a somewhat simple question, that seems to be escaping me. i was messing around with the built-in method itertools to see if i could get anagrams of my name, anyway.. i wanted to write the resul... |
|
gr3yali3n |
General Coding Help |
2 |
2,427 |
Dec-05-2021, 09:01 PM |
|
|
Thread: how do i find the canvas location of an object?
Post: RE: how do i find the canvas location of an object...
No, the indexing is fine, I just wanted to make sure that the return false return True were working in that manner , I am teaching myself python and there is a lot I still don’t understand but thank y... |
|
gr3yali3n |
GUI |
10 |
7,320 |
Mar-06-2021, 06:25 AM |
|
|
Thread: how do i find the canvas location of an object?
Post: RE: how do i find the canvas location of an object...
i know you are ready to get rid of me for a while but this collide method what is return false return True doing? i pretty much understand the rest ive been studying AABB collision for a few days now.... |
|
gr3yali3n |
GUI |
10 |
7,320 |
Mar-05-2021, 07:27 AM |
|
|
Thread: how do i find the canvas location of an object?
Post: RE: how do i find the canvas location of an object...
I did not take into account the name of the class for this example, honestly I didn’t realize I couldn’t name my classes after commonly used methods but it makes sense the same way we can’t save files... |
|
gr3yali3n |
GUI |
10 |
7,320 |
Mar-03-2021, 05:39 AM |
|
|
Thread: how do i find the canvas location of an object?
Post: how do i find the canvas location of an object?
while i try to get the canvas or even the bbox coordinates of an object i am either getting None returned or the object is returning the memory location of the object and not the location on the canva... |
|
gr3yali3n |
GUI |
10 |
7,320 |
Mar-03-2021, 02:08 AM |
|
|
Thread: creating an object at another objects position
Post: RE: creating an object at another objects position
I didn’t mean for my last statement to seem sarcastic, I should have worded it as, if I am not supposed to do this with Tkinter that is fine, I am also interested in pygame, I just don’t understand ho... |
|
gr3yali3n |
GUI |
7 |
3,078 |
Feb-28-2021, 03:04 AM |
|
|
Thread: creating an object at another objects position
Post: RE: creating an object at another objects position
i am not trying to make a game. im trying to understand the mechanics behind why this works.
a friend of mine is also trying to explain this to me and he got it to work lickety-split.
the keybinding ... |
|
gr3yali3n |
GUI |
7 |
3,078 |
Feb-19-2021, 07:35 PM |
|
|
Thread: creating an object at another objects position
Post: RE: creating an object at another objects position
lasers the list or Laser the class instance?
the forloop laser was a mistake it was changed to,
while True:
r.mainloop()
r.update()
for Laser in Laser.lasers:
Laser.update()
... |
|
gr3yali3n |
GUI |
7 |
3,078 |
Feb-19-2021, 05:53 PM |
|
|
Thread: creating an object at another objects position
Post: creating an object at another objects position
i want to create a small block to be a 'laser' and fire it from the canvas image im using as a ship. i've already created a list to append to and a ttl for the laser i even created the Laser class, bu... |
|
gr3yali3n |
GUI |
7 |
3,078 |
Feb-19-2021, 06:13 AM |
|
|
Thread: while movinig an object how do i keep it inbounds
Post: RE: while movinig an object how do i keep it inbou...
if i add a variable for the image like so this does work, but i still have to manually figure out what positions are the limits and then enter those numbers,
the 680 for x and 326 for y. if my image ... |
|
gr3yali3n |
GUI |
7 |
3,073 |
Feb-18-2021, 06:35 AM |
|
|
Thread: while movinig an object how do i keep it inbounds
Post: RE: while movinig an object how do i keep it inbou...
thank you for explaining this , it really is appreciated, i took the time last night to to study this, i didn't realize that there were relative AND absolute coordinates, i used the absolute coordina... |
|
gr3yali3n |
GUI |
7 |
3,073 |
Feb-17-2021, 07:47 PM |
|
|
Thread: while movinig an object how do i keep it inbounds
Post: while movinig an object how do i keep it inbounds
a few days ago i asked python fourms about appending to a list with this same object one person added a portion where the ship would stay in bounds , ive tried to recreate that
but when i do somethin... |
|
gr3yali3n |
GUI |
7 |
3,073 |
Feb-16-2021, 09:00 PM |
|
|
Thread: apendng to a list within a class
Post: RE: apendng to a list within a class
So like this?
class Fruit:
fruit_l=[]
def __init__(self,name):
self.name=name
def named(self):
print('{} is a fruit'.format(self.name))
def list1(self):
inp = input('enter a fruit: ')... |
|
gr3yali3n |
General Coding Help |
4 |
2,383 |
Feb-16-2021, 02:38 AM |
|
|
Thread: apendng to a list within a class
Post: apendng to a list within a class
i am trying to understand classes how to create list within them and how to append to that list.
i guess i missed a basic understanding of appending somewhere. or something else.
but for instance i tr... |
|
gr3yali3n |
General Coding Help |
4 |
2,383 |
Feb-15-2021, 11:23 PM |
|
|
Thread: tkinter moving an class object with keybinds
Post: RE: tkinter moving an class object with keybinds
thank all of you, bashbedlam especially, i don't know why that did not occur to me to try :( , but that got it moving...! and whats better about it is i understand why it is working now.
as far as bin... |
|
gr3yali3n |
GUI |
5 |
3,330 |
Feb-10-2021, 08:16 PM |
|
|
Thread: tkinter moving an class object with keybinds
Post: tkinter moving an class object with keybinds
ive been pulling out my hair trying to figure out how to get this to work correctly, i dont fully understand why i got this to work. could someone explain this to me, i have been messing around with t... |
|
gr3yali3n |
GUI |
5 |
3,330 |
Feb-10-2021, 06:21 AM |
|
|
Thread: Voice packs for Linux espeak
Post: Voice packs for Linux espeak
I am fiddling with a project that uses espeak and I’ve started using Linux more than Mac lately,
My question is there any way to get voices that are not so horrible sounding.? Without using someone’s ... |
|
gr3yali3n |
General Coding Help |
0 |
1,677 |
Dec-24-2020, 07:42 PM |