Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,822

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 39 Guest(s)
Google, Bing, AOL, Apple

Latest Threads
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 2
» Views: 52
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 12:09 PM
» Replies: 4
» Views: 116
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 207
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 330
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Nov-11-2025, 05:07 AM
» Replies: 5
» Views: 290
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 123
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,627
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 222
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 213
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,503

 
  How to restrict a ttk.PanedWindow's sash?
Posted by: lunacore - Dec-28-2024, 07:17 AM - Forum: GUI - Replies (1)

Here is the MRP code of the situation:
[python]
def enforce_sash_limits(self, event):
self.main_paned_win.sashpos(0, 120)

def init_pagebrows..... More

Print this item

  How to revert back to a previous line from user input
Posted by: Sharkenn64u - Dec-28-2024, 05:41 AM - Forum: General Coding Help - Replies (2)

Guys have a question and cant seem to find the solution anywhere, most places are telling me to create a loop:

LINE1: user_name = input('what is y..... More

Print this item

  [Solved]Help terminating arduino properly
Posted by: classified - Dec-28-2024, 12:10 AM - Forum: General Coding Help - Replies (1)

Hello,

I'm working on a robotic head and I have a pan/tilt mechanism with a 2 axis tilt (Left/Right tilt).

I'm using a camera with python to do..... More

Print this item

  Detect if another copy of a script is running from within the script
Posted by: gw1500se - Dec-27-2024, 03:42 PM - Forum: General Coding Help - Replies (4)

I have a situation where an application can launch a python script at any time. It can also launch the script multiple times almost simultaneously. I ..... More

Print this item

  Bitcoin Machine Learning and Future forcaste
Posted by: Farrukhbuzdar - Dec-27-2024, 12:24 PM - Forum: Data Science - Replies (1)

I developed a script and encountering error. Need inputs to finalize script. I am using .csv file in script to analysize future price of #bitcoin
---..... More

Print this item

  Newcomer has a project in mind
Posted by: omexlu - Dec-27-2024, 08:29 AM - Forum: General Coding Help - Replies (1)

Hello,

I am completely inexperienced and new to Python, but have experience with every possible web programming language.

I have the following p..... More

Print this item

  Error in Raspberry Pi
Posted by: 1Curiousindividual - Dec-26-2024, 05:47 PM - Forum: General Coding Help - Replies (1)

Merry Christmas and good evening to everyone. I have a hand tracking code.I wrote the code by combining two different codes with chat gpt. I try to fi..... More

Print this item

  Popup window not coming
Posted by: RamanSMann - Dec-24-2024, 11:53 PM - Forum: GUI - Replies (2)

hi,
i am new to PyQt5. i am trying to make a GUI with the help of a tutorial. but popup window is not coming when i click the button

[python]
fro..... More

Print this item

  Sending Packages with Scapy
Posted by: yoda2247 - Dec-24-2024, 06:22 PM - Forum: General Coding Help - Replies (3)

Hello
I'm learning scapy and I have a problem: the TCP packets I send are leaving, but I don't get a response. I tried to disable the firewall and g..... More

Print this item

  Python Live Coding Training for Kids (8-18 age)
Posted by: jonathanluca - Dec-24-2024, 04:36 PM - Forum: Tutorial Requests and Submissions - No Replies

Hi,
I am an online tutor at Guruface an online learning platform which is providing ..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to handle multiple audio uploads without canceling ongoing API requests?
Posted by: muba - Dec-24-2024, 03:42 PM - Forum: General Coding Help - Replies (2)

I’m building a web application where users can upload audio files, and each file is sent to an external API (Gemini API) for processing. However, I’m ..... More

Print this item

  How to umount on a closed distro
Posted by: ebolisa - Dec-24-2024, 01:57 PM - Forum: General Coding Help - Replies (5)

Hi,

I'm running an old motioneye distro on a Raspberry Pi with python 2.7. It's working fine but it has filenames read-write only.

Because I'd l..... More

Print this item

  If I need to do regex replacement 27000 times, how to shorten it?
Posted by: tatahuft - Dec-24-2024, 06:14 AM - Forum: General Coding Help - Replies (4)

If I need to do regex replacement 27000 times with different pattern search and replacement, how to shorten it?

[python]import re
from _Arm64HexDa..... More

Print this item

  How to write variable in a python file then import it in another python file?
Posted by: tatahuft - Dec-24-2024, 04:38 AM - Forum: General Coding Help - Replies (4)

How to write variable in a python file then import it in another python file?
[python]hex_mova64w0c0 = "00008052"

hex_mova64w1c0 = "01008052"
hex..... More

Print this item

  Raspberry PI - PyAudio - Streaming to Web Page
Posted by: ultimatecodewarrior - Dec-24-2024, 04:34 AM - Forum: General Coding Help - Replies (2)

Hi All, trying to stream from the Microphone on the Raspberry PI. This chunk of code almost works on the PI to a browser window. I just don't hea..... More

Print this item

  [split] another problem with code
Posted by: blakeusherremix68 - Dec-23-2024, 11:36 PM - Forum: General Coding Help - No Replies

Hello. I need help with this:

print1 = "print("
print2 = "dogma"

print(f"My name is {print1}{print2} years old.")

IF i am trying to includ..... More

Print this item

  xl() function key error
Posted by: EricAshton - Dec-23-2024, 03:58 PM - Forum: General Coding Help - No Replies

So the Microsoft Excel preview version includes python integration. I am having trouble with it and I posted on the MS office preview forum but the Mi..... More

Print this item

  another problem with code
Posted by: zane108 - Dec-22-2024, 05:13 PM - Forum: General Coding Help - Replies (7)

What is wrong with my code listed below? Thanks in advance for your assistance!

Instructions:
You are given three numbers as input. Write a progra..... More

Print this item

  Getting an error while trying to process data, low memory when memory is not low?
Posted by: bkeith12 - Dec-20-2024, 02:52 PM - Forum: General Coding Help - No Replies

Im using a program called PING Mapper to process side scan sonar. I usually work in MATLAB so I don't have a ton of experience in Python, this PING Ma..... More


Attached Files

.txt   error_2024-12-20_0638.txt (Size: 3.38 KB / Downloads: 127)
Print this item

  How to run shell command, capture the output, then write it into textfile?
Posted by: tatahuft - Dec-20-2024, 06:27 AM - Forum: General Coding Help - Replies (4)

How to run shell command, capture the output, then write it into textfile?

I tried to use code below:
[python]from subprocess import run


data..... More

Print this item

  plans for 2025.
Posted by: Celal - Dec-20-2024, 05:17 AM - Forum: Bar - Replies (5)

Do share here what is your plans for 2025.

What is the resolution for the next year?

I am looking for your exciting replies

Print this item

  How to convert while loop to for loop in my code?
Posted by: tatahuft - Dec-20-2024, 01:35 AM - Forum: General Coding Help - Replies (4)

I have a working script in python like this:
[python]import re

handle_file1 = open("example1.so", "rb")
hex_file1 = handle_file1.read().hex().upp..... More

Print this item

  Problems writing a large text file in python
Posted by: Vilius - Dec-19-2024, 10:40 AM - Forum: General Coding Help - Replies (4)

Hi,

I have developed this semi-scientific code that acts as a TCP server. It listen for incoming messages, processes those and stores it in the compu..... More

Print this item

  LLM data I/O - for storing notes
Posted by: Alkanet - Dec-19-2024, 09:08 AM - Forum: General Coding Help - No Replies

Looking to build out a local LLM system to read in notes that get stored quickly for prompting after. What is the best directory or file format for th..... More

Print this item

  Storing DictProxy object and modifying its nested value?
Posted by: haihal - Dec-19-2024, 01:25 AM - Forum: General Coding Help - Replies (3)

The standard multiprocessing.managers.BaseManager module does not permit or recognize the use of nested objects, forcing one to resort to `multiproc..... More

Print this item

  How to read a file as binary or hex "string" so that I can do regex search?
Posted by: tatahuft - Dec-19-2024, 01:03 AM - Forum: General Coding Help - Replies (3)

For example,
If I open a file using hex editor, it showed
3C 47 23 56 59 59 66 38 38 5C 67 3A 5A 70 29 32 47 25 28 63 5D 33 32 39 69 30 58 53 2B 4B ..... More

Print this item

  [fixed] Debugging in a remote server using VScode
Posted by: paul18fr - Dec-18-2024, 09:25 AM - Forum: News and Discussions - Replies (1)

Hi,

I'm wondering if an experienced user can help in debugging (python codes) in a remote server using VScode? especially when environments must be..... More

Print this item

  How can I make this code more efficient and process faster?
Posted by: steven_ximen - Dec-17-2024, 04:27 PM - Forum: General Coding Help - No Replies

The main function simulates receiving as much data as possible and then forwarding it to other subprocesses for processing. There will actually be mul..... More

Print this item

  Matplotlib not working
Posted by: svalencic - Dec-17-2024, 03:53 PM - Forum: General Coding Help - Replies (4)

Hi everyone,

I'm getting error while using Matplotlib. Importing it using import matplotlib.pyplot as plt works perfect, however any other function..... More

Print this item

  Asyncio subprocess blocking with python workload only
Posted by: lloydbond - Dec-17-2024, 03:03 PM - Forum: General Coding Help - Replies (1)

issue: if you start a subprocess that has a pipe to stdout for the purpose of concurrently processing output from stdout using asyncio everythi..... More

Print this item

  Search in a file using regular expressions
Posted by: ADELE80 - Dec-17-2024, 10:48 AM - Forum: General Coding Help - Replies (2)

Hello all,

I have the following file with DB_BASE commented:

profile.txt

export DB_SID=NEW
#export DB_BASE=/oracle/${DB_SID}
export DB_HOME..... More

Print this item

  Using place for a button, many examples but AttributeError, tkinter
Posted by: Edward_ - Dec-16-2024, 04:17 PM - Forum: GUI - Replies (3)

This must be very simple, how to Place a button by x and y coordinates, not using a frame/grid.

button.place(x=100, y=200)
Shown in e..... More

Print this item

  button image changing but not visually updating
Posted by: RuaridhW - Dec-16-2024, 09:48 AM - Forum: GUI - Replies (2)

Hi complete noob but i've been banging my head against this for 2 days and still can't work out what i'm doing wrong

So i am trying to setup a stack ..... More

Print this item

  Sound notification issue
Posted by: drgensel - Dec-16-2024, 05:24 AM - Forum: GUI - Replies (2)

Greetings,

I have designed an app, in tkinter, that pulls live incident (call) data from my local fire department. My goal for this app is to be no..... More

Print this item

  Generative Density Approximation for Deterministic Point Patterns: Hopalong Attractor
Posted by: ratwolf - Dec-15-2024, 11:57 AM - Forum: Code sharing - Replies (2)

The "Hopalong" attractor (Martin’s map) shown as a Density Heatmap, which enables a 3D representation by mapping normalized density values ​​al..... More


Attached Files

Thumbnail(s)
               
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  why is the image not show... 6 hours ago sarbogast deanhystad General Codin...
  New to python and coding Yesterday, 12:09 lary_p jefsummers Homework
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... 11-11, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
Most views
  The best Prog... 578876
  Tutorial Requ... 510016
  Web Scraping ... 441928
  Newbie with P... 385938
  New Users Int... 376503
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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