Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Confused about python execution
Post: RE: Confused about python execution

Thanks for your reply. I see a notable difference in my program speeds when using ram disks for program execution and for storing output information (which is copied to the real disk periodically) but...
jpezz General Coding Help 4 1,382 Oct-09-2022, 03:54 PM
    Thread: Confused about python execution
Post: Confused about python execution

I copy my programs to a directory that is a ram disk (for speed). Note that execution speed is critical. Startup time is not. cp ~key/Programs.Source/py3*.py ~key/Programs # Copy to RAM disk Then I e...
jpezz General Coding Help 4 1,382 Oct-07-2022, 04:02 PM
    Thread: Play fixed frequency sound in python 3
Post: RE: Play fixed frequency sound in python 3

(Feb-07-2021, 06:20 PM)DPaul Wrote: I have not researched this on python 3, but micropython (eg. on the micro:bit) has a built-in music module. It does exactly what you want: music.pitch(440, 1000)...
jpezz General Coding Help 2 2,778 Feb-07-2021, 08:21 PM
    Thread: Play fixed frequency sound in python 3
Post: Play fixed frequency sound in python 3

I would just like to play a fixed frequency for a fixed period of time to the default speakers (HDMI or other) on a RP3 running wheezy with eventual porting to RPI 4 on Buster. This is from within a p...
jpezz General Coding Help 2 2,778 Feb-07-2021, 05:44 PM
    Thread: I don't think I understand the basics of tkinter!
Post: RE: I don't think I understand the basics of tkint...

(Apr-08-2019, 08:53 PM)joe_momma Wrote: Knowledge is acquired bit by byte. I've read through your posts. I suggest Mark Lutz's book learning python(no tkinter in it), then his book programming pytho...
jpezz GUI 6 3,389 Apr-15-2019, 02:41 PM
    Thread: Where is Popen.pid?
Post: RE: Where is Popen.pid?

(Apr-08-2019, 07:06 AM)buran Wrote: Based on your questions here and the tkinter thread it looks you lack basic understanding of OOP (object-oriented programming) - e.g. classes, instances, attribut...
jpezz General Coding Help 6 4,703 Apr-08-2019, 11:16 AM
    Thread: Where is Popen.pid?
Post: RE: Where is Popen.pid?

(Apr-07-2019, 11:30 PM)micseydel Wrote: You probably want p1.pid; how is Python supposed to know you want p1 when you only reference Popen?From that page I referenced: Quote: Popen.pid The pro...
jpezz General Coding Help 6 4,703 Apr-08-2019, 12:57 AM
    Thread: Where is Popen.pid?
Post: Where is Popen.pid?

Described in https://docs.python.org/3/library/subprocess.html. But I run python3 on my program def Output_text (MyString, Xoffset, Yoffset, fg_color, bg_color, Font_size): global screen_width ...
jpezz General Coding Help 6 4,703 Apr-07-2019, 10:41 PM
    Thread: I don't think I understand the basics of tkinter!
Post: RE: I don't think I understand the basics of tkint...

(Apr-07-2019, 05:46 PM)Gribouillis Wrote: You also need to understand that tkinter is not python/pythonic. It is only a wrapper around Tcl/Tk, an award winning software by John Ousterhout. Tk has it...
jpezz GUI 6 3,389 Apr-07-2019, 06:39 PM
    Thread: Why is it so difficult to just ouput an image where I want?
Post: RE: Why is it so difficult to just ouput an image ...

wuf, Yeah, that does more like what I want. Thanks. The image sizes are as follows" characters: 100x153 "dot": 100x100 "dash": 100x300 All are 100 wide. Letters will not be on same line as dot/dash. ...
jpezz GUI 14 11,636 Apr-07-2019, 05:07 PM
    Thread: I don't think I understand the basics of tkinter!
Post: RE: I don't think I understand the basics of tkint...

Quote:11. i don't understand what your asking on this one sorry. If I have a background that's just a black field. Then I create a label. If I remove that label, will the background behind it be resto...
jpezz GUI 6 3,389 Apr-07-2019, 02:28 PM
    Thread: Exiting/killing a program with tkinter but leaving the graphic on the screen
Post: RE: Exiting/killing a program with tkinter but lea...

DeaD_EyE, No. I would want a python program like your button program (but I don't need active buttons) that when it was executed by another script, it would output the "Button" (or in my case a "labe...
jpezz GUI 3 3,984 Apr-07-2019, 02:13 PM
    Thread: Exiting/killing a program with tkinter but leaving the graphic on the screen
Post: Exiting/killing a program with tkinter but leaving...

I want the opposite of what most people want. I call a python subprogram to put a tk label on the screen. I want that program to terminate itself when it outputs the label (best) or to be sent a "kill...
jpezz GUI 3 3,984 Apr-07-2019, 12:26 PM
    Thread: Why is it so difficult to just ouput an image where I want?
Post: RE: Why is it so difficult to just ouput an image ...

(Apr-07-2019, 10:05 AM)wuf Wrote: Hi jpezz Could you please exactly what you want to achieve??? wuf :-) I apologize for not being clear. I want to create a Label big enough to hold x images but in...
jpezz GUI 14 11,636 Apr-07-2019, 12:01 PM
    Thread: I always get 'None' returned. Confused. What did I miss?
Post: RE: I always get 'None' returned. Confused. What d...

Duh! This is what happens when you copy and modify a routine. I left off all the code. I wasn't paying attention to what I was doing and was overtired. Thanks. It works fine with the rest of the co...
jpezz General Coding Help 2 2,385 Apr-07-2019, 10:06 AM
    Thread: I always get 'None' returned. Confused. What did I miss?
Post: I always get 'None' returned. Confused. What did I...

import random # Morse Code string translator # delimited with spaces for characters, and / for words # format example "HELLO WORLD": .... . .-.. .-.. --- / .-- --- .-. .-.. -.. def untranslate_morse...
jpezz General Coding Help 2 2,385 Apr-07-2019, 01:37 AM
    Thread: I don't think I understand the basics of tkinter!
Post: I don't think I understand the basics of tkinter!

The documentation doesn't help! If I have (forget the variables except the ones I need help with and not all statements are shown): root = tk.Tk() root.geometry('%sx%s+%s+%s' % (Xsize, Ysize, Xoffse...
jpezz GUI 6 3,389 Apr-06-2019, 09:20 PM
    Thread: Why is it so difficult to just ouput an image where I want?
Post: RE: Why is it so difficult to just ouput an image ...

(Apr-06-2019, 04:33 AM)wuf Wrote: Hi jpezz Make following alteration: image2 = Image.open("pngs/b.png") root.test_image2 = ImageTk.PhotoImage(image2) image_label.place(x=600, y=50) image_label.conf...
jpezz GUI 14 11,636 Apr-06-2019, 08:01 PM
    Thread: Why is it so difficult to just ouput an image where I want?
Post: RE: Why is it so difficult to just ouput an image ...

(Apr-05-2019, 04:26 PM)wuf Wrote: Hi jpezz You can't place a Canvas directly on the screen. It must be embedded on the main window. Here some different placements of an image in a tk-Application: ...
jpezz GUI 14 11,636 Apr-05-2019, 08:19 PM
    Thread: Why is it so difficult to just ouput an image where I want?
Post: RE: Why is it so difficult to just ouput an image ...

(Apr-05-2019, 01:19 PM)wuf Wrote: Hi jpezz You have to bind the tk-image to an object. In your case for instance to the object root. The canvas needs a layout membership for which i choosed pack. F...
jpezz GUI 14 11,636 Apr-05-2019, 02:33 PM

User Panel Messages

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