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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,934
» Latest member: alexguemez
» Forum threads: 38,721
» Forum posts: 175,508

Full Statistics

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

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
2 hours ago
» Replies: 9
» Views: 2,654
Too much space between gr...
Forum: GUI
Last Post: RonR
8 hours ago
» Replies: 4
» Views: 1,080
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
9 hours ago
» Replies: 3
» Views: 97
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 463
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,635
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 559
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 176
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,072
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,303
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 975

 
  ATM machine demo with Python and Django
Posted by: Drone4four - May-13-2022, 07:49 PM - Forum: Web Scraping & Web Development - Replies (1)

This is a long post. The most important information is at the top and gradually progresses to less and less relevant information. So you don’t have to..... More

Print this item

  How to crop a video to 9:16?
Posted by: yschrs - May-13-2022, 07:34 PM - Forum: General Coding Help - Replies (3)

Hello everyone,

I am looking to crop my video that has a standard aspect ratio (1920x 1080) to a 9:16 aspect ratio (1080 x 1920).

I saw that the..... More

Print this item

  How to fix this?
Posted by: DERO - May-13-2022, 06:43 PM - Forum: Homework - No Replies

Hi.
So, my question is:
When I ran the below code all values change to custom(as it should be), except for the last phrase. I wonder if anyone has a..... More

Print this item

  How to fix this?
Posted by: DERO - May-13-2022, 06:43 PM - Forum: Homework - Replies (1)

Hi.
So, my question is:
When I ran the below code all values change to custom(as it should be), except for the last phrase. I wonder if anyone has a..... More

Print this item

  Convert a string to a function
Posted by: mikepy - May-13-2022, 05:30 PM - Forum: General Coding Help - Replies (8)

Hello, is there a possibility or library to convert the following string to a function?

[code]func_str = '''def test(event, x, y, flags, data):
..... More

Print this item

  Check if a value is present in each group
Posted by: Menthix - May-13-2022, 03:42 PM - Forum: General Coding Help - Replies (8)

Hi,

I have a dataframe with two columns : an 'ID' column and a column 'V1' with different values between 1 and 3.
I'd like to mark each ID with 1..... More


Attached Files

Thumbnail(s)
   
Print this item

  Replace elements of array with elements from another array based on a third array
Posted by: Cola_Reb - May-13-2022, 01:00 PM - Forum: General Coding Help - Replies (6)

I hope I can explain my current problem in a understandable way (besides from the possible confusing title Rolleyes):

I need to replace some el..... More

Print this item

  Your p“Timeout !!!!” when I enter a known good IP address when running port scanner
Posted by: James2000k - May-13-2022, 08:55 AM - Forum: Networking - Replies (8)

Can anyone offer some assistance because i am working on this port scanner and it seems to run fine but when i sent it to another person they said the..... More

Print this item

  Tetris samples for teaching Python
Posted by: relent95 - May-13-2022, 07:40 AM - Forum: Code sharing - No Replies

I created two tetris implementations to teach Python to my sons.
Any suggestions for simplifying the logic or improving the readability are welcome...... More

Print this item

  [Solved]Help Getting Started on Scene Swapping
Posted by: Extra - May-12-2022, 11:26 PM - Forum: GUI - Replies (10)

Hello,

I have yet another question, but this one entails replacing the current screen/window with a new one when it is called.

I'm trying to ha..... More

Print this item

  Python to exe-Does it do Pip installs?
Posted by: Extra - May-12-2022, 08:12 PM - Forum: News and Discussions - Replies (1)

Hello,

I'm have a python script that currently uses PyQt5 for the GUI, and I'm wondering if I wanted to make it an exe file down the road, will it ..... More

Print this item

  [Solved]Help Passing Variables
Posted by: Extra - May-12-2022, 08:01 PM - Forum: GUI - Replies (4)

Hello,

I'm wondering how I can pass my userInputName and userInputPassword to my validate function.
I thought this was the correct way of doing ..... More

Print this item

  Split excel file and write output at specific row and set sheet position
Posted by: DSCA - May-12-2022, 07:29 PM - Forum: Data Science - No Replies

Hi All,

I have a Masterfile which I split with the help of codes. Below is the code I use for splitting the excel file based on a column.

[pyth..... More

Print this item

  Save settings
Posted by: frohr - May-12-2022, 06:50 PM - Forum: General Coding Help - Replies (3)

Hi,
I want to ask you how to save options. I have main window with charts and calculations. When I click Settings button, second window is open.

T..... More

Print this item

  Converting '1a2b3c' string to Dictionary
Posted by: PythonNoobLvl1 - May-12-2022, 05:39 PM - Forum: General Coding Help - Replies (6)

Hello, I'm currently in school for computer science, graduating next year and I've been browsing some of the leetcode problems. I was a bit dishearten..... More

Print this item

  force a program to exit ?
Posted by: Armandito - May-12-2022, 12:22 PM - Forum: General Coding Help - Replies (3)

Hello everyone!

Here is my problem: I use a Python program that communicates with a device. Sometimes (for no apparent reason) it loses connection w..... More

Print this item

  Right way to implement interfaces
Posted by: yossiy123 - May-12-2022, 08:07 AM - Forum: General Coding Help - Replies (1)

Hi all!

There is a right way to implement interfaces?
I read about ABC but I heard it going to be deprecated so I want to know if there is other w..... More

Print this item

  [ElementTree] Insert big block of HTML?
Posted by: Winfried - May-12-2022, 07:08 AM - Forum: General Coding Help - No Replies

Hello,

I have only shallow experience with XML parsers — although I'm currently dealing with HTML.

Unless I missed it, neither lxml nor ElementTree ..... More

Print this item

  [Solved]Help storing in user input from line edit
Posted by: Extra - May-12-2022, 12:32 AM - Forum: GUI - Replies (2)

Hello,

I have a Line Edit in my PyQt5 GUI and I'm wondering how I can take the input the user types in and store it into a python variable once the..... More

Print this item

  [Solved] Help with an DLL import error
Posted by: Extra - May-11-2022, 10:41 PM - Forum: GUI - Replies (4)

Hello,

I have a quick script that should let me view the GUI.
But when I run it I get this error:
[error]
from PyQt6.QtWidgets import QAppli..... More

Print this item

  [Solved]Converting .ui to .py
Posted by: Extra - May-11-2022, 09:03 PM - Forum: GUI - Replies (4)

Hello,

I used QT Designer (This one here: QT Designer Link) and I'm wondering how to c..... More

Print this item

  Link scripts from a different folder
Posted by: Extra - May-11-2022, 08:00 PM - Forum: General Coding Help - Replies (3)

Hello,

I have a folder called "Inventory system" and within the "Inventory System" folder I have 2 subfolders: "Databases" and "Functions"

The ..... More

Print this item

  Encryption program
Posted by: andrei - May-11-2022, 07:56 PM - Forum: Code sharing - Replies (1)

Hello all, I seem to be having a issue while I am decoding the following program ( encryption type ) no issue encoding it , can anybody provide some i..... More


Attached Files

.py   encoding09.py (Size: 2.11 KB / Downloads: 2)
.py   decoding01.py (Size: 2.37 KB / Downloads: 1)
Print this item

  check if element is in a list in a dictionary value
Posted by: ambrozote - May-11-2022, 04:02 PM - Forum: General Coding Help - Replies (4)

how can I check if an element is in a list in a dictionary value? for instance

how can I get this code to output "Found it"

a = "Doors"

dict ..... More

Print this item

  Loop through list of ip-addresses [SOLVED]
Posted by: AlphaInc - May-11-2022, 01:31 PM - Forum: General Coding Help - Replies (7)

Hello everybody,

I want to use a python script to check if certain ips are still online and if not, i want the system to shut down.
Therefore I ha..... More

Print this item

  what have you learned recently?
Posted by: Skaperen - May-10-2022, 10:02 PM - Forum: Bar - Replies (15)

what have you learned recently that impacts your programming in Python or anything else you regularly do?

Print this item

  Model ID error
Posted by: sshree43 - May-10-2022, 07:53 PM - Forum: General Coding Help - No Replies

Hi Expert,

I am trying to use model id for form recognizer py script. Here is my code . currently I am using endpoint url and api key and data is g..... More

Print this item

  Trying to use 2 values from excel in my script but getting error..
Posted by: cubangt - May-10-2022, 07:14 PM - Forum: General Coding Help - Replies (3)

I have a script which reads in a text/csv files and im saving a filtered version as a new file, can be seen in my last post about deleting after a cer..... More

Print this item

  How to use Thread() ?
Posted by: Frankduc - May-10-2022, 05:42 PM - Forum: General Coding Help - Replies (7)

Hello,

By any luck someone could tell me how i could fix my thread problem.

In the while loop at the begging there is a thread. Its link to a functi..... More

Print this item

  How to find link to video file from URL
Posted by: Pavel_47 - May-10-2022, 02:33 PM - Forum: Web Scraping & Web Development - Replies (38)

Hello,

There is Add-on in FireFox (Video DownloadHelper) that allows to find link to video.
For example on this page ..... More

Print this item

  Can't install FireDM tool
Posted by: Pavel_47 - May-10-2022, 01:35 PM - Forum: Web Scraping & Web Development - Replies (4)

Hello,
Cannot install FireDM tool (downloading videos).
I used pip install FireDM as suggested here:
FireDM 2[url=https://python-forum.io/thread-37190.html]..... More


Attached Files

.txt   pip_install_log.txt (Size: 6.94 KB / Downloads: 338)
Print this item

  Acceleration to velocity
Posted by: frohr - May-10-2022, 11:10 AM - Forum: Data Science - Replies (1)

Hi,
I want to ask you if I have correct calculation of velocity fom acceleration. It is for vibration analysis.
I have ADXL1005 and I acquire data t..... More

Print this item

  [SOLVED] [Windows] Right way to prompt for directory?
Posted by: Winfried - May-10-2022, 06:08 AM - Forum: General Coding Help - Replies (4)

Hello,

On Windows, I need to loop through all .TXT files in a directory.

In a command-line script (no GUI), I can't figure out how to use the us..... More

Print this item

  Use pexpect to send user input
Posted by: alisha17 - May-10-2022, 02:40 AM - Forum: General Coding Help - No Replies

I am trying to send the user input, which is the 'ENTER' key and from the documentation looks like child.sendline() should do the job. However the f..... More

Print this item

  Rain sensor output only on change
Posted by: Pete6 - May-10-2022, 02:28 AM - Forum: General Coding Help - Replies (4)

Greeting all. First post here and a bit of a newbie to coding.

I have built a simple weather station. It samples a rain detector sensor once ever..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error 2 hours ago CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... 8 hours ago RonR RonR GUI
  datetime in SQL query. 9 hours ago Dibbley Dibbley General Codin...
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575914
  Tutorial Requ... 497295
  Web Scraping ... 439897
  Newbie with P... 383628
  New Users Int... 365953
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
alexguemez Today
Shadab Today
Dibbley Today
XenonBlack Yesterday
Lenowell Yesterday

User Panel Messages

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