Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Load image and show in label
Post: RE: Load image and show in label

Hey, a couple comments on your code: In python classes use the self instance, using self instead of root will allow you to eliminate the global variables. the use of self in classes when you created ...
joe_momma GUI 8 3,020 Oct-23-2022, 06:59 PM
    Thread: Video in Canvas
Post: RE: Video in Canvas

Quote: I have tried canvas.tag_raise(circ) circ is a function not a tag, I believe that the video player isn't a canvas object so any ovals created would be under it on the canvas.
joe_momma GUI 6 3,023 Oct-02-2022, 01:57 PM
    Thread: Transparent Canvas
Post: RE: Transparent Canvas

Quote: The idea is if i had an image in the background i can still see the image with the circle on top Canvas has an image object, create_image. Then create your oval next which will put it over the ...
joe_momma GUI 8 9,938 Oct-02-2022, 01:48 PM
    Thread: I wanted to make a kivy tutorial, but I failed in step one.
Post: RE: I wanted to make a kivy tutorial, but I failed...

You Kivy file has the class of: Quote:<MainWidget>: Your App class TheLabApp is pass- nothing is scripted to activate the mainwidget class. To link your Kivy file to the python script you may ne...
joe_momma GUI 5 2,832 Aug-15-2022, 04:26 PM
    Thread: How can I add reset button?
Post: RE: How can I add reset button?

Migrate your code to a class, it eliminates the use of globals. One way to clear a number of buttons is assign them to a frame. Them you can pack_forget() and clear it all. Make more functions, I mod...
joe_momma GUI 2 3,112 Jun-10-2022, 02:39 AM
    Thread: Arduino Code to Python Code
Post: RE: Arduino Code to Python Code

raspberry pi stepper Here's an example with for linux, maybe it can get you started going through the source code.
joe_momma GUI 3 2,400 Jan-07-2022, 12:50 AM
    Thread: GPIO pins to RaspPi
Post: RE: GPIO pins to RaspPi

Quote:joystick potentiometer with (X, Y) 2 axis analog output, (Z) 1 button digital output. looks like it's an analog output so you'll need an A/D converter check out this tutorial: joystick
joe_momma Game Development 4 2,213 Oct-27-2021, 06:36 PM
    Thread: GPIO pins to RaspPi
Post: RE: GPIO pins to RaspPi

(Oct-26-2021, 05:30 PM)mmagner2022 Wrote: I have a joystick that connects to the raspberry pi with GPIO pinswhat does that mean? the easiest way is to use a play station controller connected by usb...
joe_momma Game Development 4 2,213 Oct-26-2021, 07:44 PM
    Thread: Draw a grid of Tkinter Canvas Rectangles
Post: RE: Draw a grid of Tkinter Canvas Rectangles

for example code run include imports and a snip it so others can easily copy and paste and run it. Since canvas objects require exact coordinates the matrix style of two loops my not be the easiest wa...
joe_momma GUI 5 7,865 May-09-2021, 01:48 PM
    Thread: Libraries/Tools to create an editor similar to Tiled
Post: RE: Libraries/Tools to create an editor similar to...

Quote:Could anyone tell me why no body is answering my question? your question is similar to 'What's your favorite ice cream and how do I start making it.' Find one you love and practice, practice pra...
joe_momma GUI 13 4,543 May-07-2021, 01:53 PM
    Thread: Pygame freezes after certain time
Post: RE: Pygame freezes after certain time

what's the objective of the game? I ran your script 3 times without any problems. I'm using linux. I put in a print statement counting the loops thinking if it was odd it would be a up animation and e...
joe_momma Game Development 2 5,275 May-04-2021, 02:14 PM
    Thread: Arc_AntsHunt: Game Developed In Python Arcade
Post: RE: Arc_AntsHunt: Game Developed In Python Arcade

sounds interesting but: Quote:adt28 doesn’t have any public repositories yet. fallowing your link **wall**
joe_momma Code sharing 2 4,401 Apr-24-2021, 04:04 PM
    Thread: Text widget inert mode on and off
Post: RE: Text widget inert mode on and off

Quote:From what I can read online about the Text widget, it doesn't support the concept of having insert and overwrite modes correct? If I wanted to have those features, I'd have to code that up mysel...
joe_momma GUI 5 3,847 Apr-19-2021, 02:18 PM
    Thread: Text widget inert mode on and off
Post: RE: Text widget inert mode on and off

the Text widget inherits from Widget,XView and YView. as far cursors you need to change them manually. >>> from tkinter import * >>> root= Tk() >>> t= Text(root) >>&g...
joe_momma GUI 5 3,847 Apr-18-2021, 03:58 PM
    Thread: Getting values from ButtonGroup
Post: RE: Getting values from ButtonGroup

guizero is so friendly that even if you pass the incorrect attribute it works. what is row_choice.value? print(type(row_choice.value))
joe_momma GUI 5 3,573 Mar-30-2021, 02:50 PM
    Thread: Small command shell
Post: RE: Small command shell

If you mouse over the tool bar icons it's the blue and yellow one, when you hoover over it it says "insert python". Put your code between the tags please
joe_momma Code sharing 2 3,419 Mar-30-2021, 12:29 AM
    Thread: Here's a random project I made recently!
Post: RE: Here's a random project I made recently!

You need to get creative on your script names, using os.py as a file name may cause conflicts or collisions in the future when your game gets larger. Make more functions, maybe a function that prints ...
joe_momma Code sharing 1 3,104 Mar-26-2021, 02:38 AM
    Thread: Python Google maps API -> GUI tkinter
Post: RE: Python Google maps API -> GUI tkinter

Nick, pyqt5, wxpython both have a html widgets. It's been a while but I was using folium easy python map creation to create maps and play, it uses a browser and internet connection.
joe_momma GUI 9 5,697 Mar-23-2021, 10:06 PM
    Thread: how do i find the canvas location of an object?
Post: RE: how do i find the canvas location of an object...

I saw this in a book to promote coding with children bubble_blaster It's a tkinter game that creates a ship using a canvas object, bubbles -> canvas ovals and a bullet canvas line.
joe_momma GUI 10 7,003 Mar-03-2021, 02:08 PM
    Thread: GUI calculation mistake
Post: RE: GUI calculation mistake

here's my attempt at a quiz generator quiz generator. I use a separate text(.txt) file formatted- question-> answers -> solution. the tkinter script reads the lines of the file and generates the...
joe_momma GUI 5 2,827 Mar-02-2021, 06:57 PM

User Panel Messages

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