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,261
» Latest member: SledgeNE
» Forum threads: 38,785
» Forum posts: 175,843

Full Statistics

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

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: SledgeNE
5 hours ago
» Replies: 1
» Views: 57
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: Skaperen
9 hours ago
» Replies: 4
» Views: 290
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
10 hours ago
» Replies: 0
» Views: 30
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Yesterday, 06:38 PM
» Replies: 0
» Views: 61
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:02 PM
» Replies: 10
» Views: 239
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 03:33 PM
» Replies: 3
» Views: 121
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 205
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 390
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 134
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 270

 
  conditional nested loops
Posted by: Skaperen - 10 hours ago - Forum: News and Discussions - No Replies

i have 6 nested loops. i know that's crazy. even more crazy is that i don't need the first 3 of them if a certain condition is met. it would be nic..... More

Print this item

  How to make ball stay within frame
Posted by: nathanael - 11 hours ago - Forum: General Coding Help - Replies (1)

I want to be able to bounce the ball on the screen but when I run the code the ball moves of frame. I have attached a file of the code down below. H..... More


Attached Files

Thumbnail(s)
   
Print this item

  PyQt6 QWidgets and system recognition of windows
Posted by: stevecoh1 - Yesterday, 06:36 PM - Forum: GUI - No Replies

This concerns an application written in PyQt6, and in particular in relation to Ubuntu Linux (using Kubuntu KDE Plasma, but the same issues exist in G..... More

Print this item

  Please guide me to complete the attendance project
Posted by: pbkurd - Nov-13-2025, 06:58 PM - Forum: General Coding Help - Replies (3)

hello
Create an attendance program for employee check-in and check-out
In Python Web Django
I want the device to show these for the application
- ..... More

Print this item

  [solved] re.split issue
Posted by: paul18fr - Nov-13-2025, 12:42 PM - Forum: General Coding Help - Replies (10)

Hi,
It is a basic question but i'm stuck:

  • one basckslash is ignored and i do not understand why (see output)
  • the backslash ..... More

Print this item

  why is the image not showing
Posted by: sarbogast - Nov-12-2025, 04:59 PM - Forum: General Coding Help - Replies (2)

Many of my studetns were getting this error when they downloaded this project from PLTW trinket saying that the there is no file in the directory. How..... More


Attached Files

Thumbnail(s)
   
Print this item

  New to python and coding
Posted by: lary_p - Nov-11-2025, 09:25 AM - Forum: Homework - Replies (6)

Hello everyone, I'm new to python and coding, and I want to learn it for data science and web scraping. Please guide me how I can start my journey and..... More

Print this item

  Help with Serial.write in pyserial
Posted by: racingsubby - Nov-10-2025, 08:39 PM - Forum: General Coding Help - Replies (6)

Hello.
I'm new to python. I'm in a robotics class and I need to be able to control a 6-servo robotic arm. I'm using Python for the bulk of the work..... More

Print this item

  [split] print two different sequence number
Posted by: Reema - Nov-10-2025, 04:40 AM - Forum: General Coding Help - Replies (1)

from fpdf import FPDF

# إعداد PDF
pdf = FPDF('P', 'mm', 'A4')
pdf.set_auto_page_break(auto=True, margin=15)

def add_title(title):
pdf.set..... More

Print this item

Question Two arguments in input function
Posted by: Alfredd - Nov-08-2025, 09:48 AM - Forum: General Coding Help - Replies (4)

In output, I would like to receive this kind of message:
Give the quotation of Math : 15
In Math you have : 15.0 /20
and so on

Can You help me p..... More


Attached Files

Thumbnail(s)
   
Print this item

  Backward compatibility question
Posted by: yutaozhou - Nov-07-2025, 10:21 PM - Forum: News and Discussions - Replies (6)

Not complaining but actually asking and trying to understand this. Smile I understand why Google engineer moved those core models from `collectio..... More

Print this item

  I’m building a Python DataGridView (Excel-like UI for apps)—here’s a teaser.
Posted by: tsgiannis - Nov-07-2025, 05:37 PM - Forum: GUI - Replies (11)

Hey everyone,
I’ve been working on a side project that I think might solve a pain point for a lot of Python devs: a high-performance, Excel-like Data..... More

Print this item

Question [openpyxl] Set the locking property of all cells
Posted by: BelleroDev - Nov-07-2025, 09:42 AM - Forum: General Coding Help - Replies (3)

I'm dealing with cell locking (unlocking) using openpyxl module.

What I need to do is to set the locking property of all cells of a workbook. The o..... More

Print this item

  Code runs perfectly and just stops with zero errors
Posted by: compuman145 - Nov-05-2025, 02:51 PM - Forum: General Coding Help - Replies (2)

Good afternoon all,

I've got a really odd issue and I simply don't know where it is, I've been working with pulling tickers from MongoDB and then pip..... More

Print this item

Question [SOLVED] Linefeed when writing "f" strings to text file?
Posted by: Winfried - Nov-04-2025, 12:00 AM - Forum: General Coding Help - Replies (5)

Hello,

I don't know how those strings are called in Python.

In the second block, I can't get linefeeds: The two strings are on a single line. Wh..... More

Print this item

  sorting a lisr of file paths
Posted by: Skaperen - Nov-03-2025, 03:36 AM - Forum: News and Discussions - Replies (4)

there are different ways to do sorting in Python. but which way is correct? i have experienced order errors in the past but did not have time to exp..... More

Print this item

  Application logging best practices
Posted by: aecordoba - Nov-01-2025, 09:38 PM - Forum: General Coding Help - Replies (1)

I'm newbie in Python development.
I was reading several logging tutorials. For example, in "Medium" you have this guide:
..... More

Print this item

  QMenuBar mouse tracking
Posted by: deanhystad - Oct-31-2025, 04:23 PM - Forum: GUI - Replies (1)

In the example below, the menubar must be clicked before it begins tracking the mouse and opening menus. Does anyone know of a way that I can do this..... More

Print this item

  playsound error
Posted by: danandu - Oct-30-2025, 09:26 AM - Forum: General Coding Help - Replies (2)

i got this error while installing playsound on Python 3.13

[python]
D:\Dan\AIEngine\Code\ComputerVisionTasks\ImageDataAugmentation\AudioAugmenatat..... More

Print this item

  NLTK
Posted by: danandu - Oct-30-2025, 05:50 AM - Forum: General Coding Help - Replies (7)

Hi,

I was trying to install nltk in python 3.13

Installation was successful. But it gives error during testing it below.

[python]
>>> import..... More

Print this item

  New book
Posted by: Larz60+ - Oct-29-2025, 11:45 AM - Forum: Bar - No Replies

I just received a copy of a new book for all the geeks out there. Although It has nothing to do with python, looks to be a very good read.

I've bee..... More

Print this item

  PIP
Posted by: danandu - Oct-29-2025, 10:30 AM - Forum: General Coding Help - Replies (5)

hi,

when i am installing scikit-image it gives me error on preparing metadata ...

cmd prompt> pip install scikit-image

/****************
Def..... More

Print this item

  How to mark a thread "Solved or Closed"
Posted by: RonR - Oct-28-2025, 01:18 AM - Forum: Board - Replies (1)

I'm new to the forum. I posted a thread earlier today an the help solved my problem. Is there any way to mark the thread 'Solved'?

Thanks,
RonR

Print this item

  Errors using json file
Posted by: RonR - Oct-27-2025, 06:50 PM - Forum: General Coding Help - Replies (5)

I been trying to build a program to use the OpenWeatherAPI with Tkinter. Things work well if I'm using live data. But I have one data set that provi..... More


Attached Files

.zip   JsonErrorArchive.zip (Size: 144.22 KB / Downloads: 25)
Print this item

  First and Last Name Input Loops
Posted by: Anunderling - Oct-26-2025, 04:13 PM - Forum: Homework - Replies (3)

Could anyone please help me and explain why my script doesn't work properly? My problem is concentrated on getting the proper user input for the last ..... More

Print this item

  sed use with subprocess
Posted by: paul18fr - Oct-26-2025, 11:33 AM - Forum: General Coding Help - Replies (4)

Hi,

Ok this is not a fully python script since using sed, but sed is higly efficent espacially when using [b]mill..... More

Print this item

  horizontal scrollbar on treeview is not working
Posted by: Vokofe - Oct-26-2025, 09:25 AM - Forum: GUI - Replies (3)

Good day to all,

I am using python tkinter, panda and treeview. The treeview is to display an excel file via filedialog with 15 columns, which is v..... More


Attached Files

Thumbnail(s)
       
Print this item

  Bug: Two Python unistall strings available on Windows 10
Posted by: pstein - Oct-25-2025, 09:33 AM - Forum: General Coding Help - Replies (2)

In the past I installed Python v3.13.7 on Windows 10 into the directory

C:\Program Files\Python\

Later I installed v3.40 into the SAME directory..... More


Attached Files

Thumbnail(s)
   
Print this item

  Larger GUI Program Oraganisation
Posted by: Tuurbo46 - Oct-24-2025, 08:47 AM - Forum: GUI - Replies (1)

Hello,

I am just about to write a large tkinter GUI program and I would like to ask a bit of advice on layout organisation before I start. I would..... More

Print this item

  Green Screen Fun
Posted by: NMB4321 - Oct-23-2025, 01:53 PM - Forum: General Coding Help - Replies (2)

Hi.

I work in a school and I want to set up a bit of fun for students. We have a large screen hooked up to a PC. I want to pop a webcam on the TV..... More

Print this item

Question [DOS/cmd] How to handle accents?
Posted by: Winfried - Oct-23-2025, 01:09 PM - Forum: General Coding Help - Replies (5)

Hello,

On Windows, I need to write a Python script to build a command and save it into a batch file (ie. cmd) that calls a command-line.

Problem is,..... More

Print this item

  re does not seem to distinguish \d and \w properly
Posted by: Pedroski55 - Oct-23-2025, 06:42 AM - Forum: General Coding Help - Replies (4)

Why doesn't re distinguish between \d and \w here?

[python]import re

s1 = '123EFG 123EHI 123EJK'

k = re.compile(r'3E')
k.search(s1) # return..... More

Print this item

  pip not working
Posted by: JesseFeller - Oct-21-2025, 04:39 PM - Forum: General Coding Help - Replies (5)

Whenever I try to install a package using pip in VS code I get the following error. Any suggestions? Thanks in advance.

[error]Traceback (most rec..... More

Print this item

  Need to change connection and queries from SQLite to MySQL
Posted by: Bxapocalypse1 - Oct-20-2025, 03:08 PM - Forum: General Coding Help - Replies (2)

I am just starting to learn python and I am trying to figure this one app out. I am trying to change the code so my app connects to MySQL instead of S..... More


Attached Files

.py   App_Stable.py (Size: 66.61 KB / Downloads: 20)
Print this item

  [solved] regex issue
Posted by: paul18fr - Oct-19-2025, 04:52 PM - Forum: General Coding Help - Replies (3)

Hi

I'm spending too much time in trying to fing how to get the number between 'BEGIN' and 'END' using a pure regex: what is the corre..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 5 hours ago nathanael SledgeNE General Codin...
  sorting a lisr of file pa... 9 hours ago Skaperen Skaperen News and Disc...
  conditional nested loops 10 hours ago Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... Yesterday, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue Yesterday, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... Yesterday, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
Most views
  The best Prog... 578977
  Tutorial Requ... 510549
  Web Scraping ... 441994
  Newbie with P... 386022
  New Users Int... 377130
Most reputation
buran 581
snippsat 511
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+ 12108
buran 8195
snippsat 7388
deanhystad 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
SledgeNE Today
nathanael Yesterday
JamesFalkner Yesterday
stevecoh1 Yesterday
Bamboo Yesterday

User Panel Messages

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