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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,793
» Latest member: jasserin
» Forum threads: 37,488
» Forum posts: 170,327

Full Statistics

Online Users
There are currently 378 online users.
» 0 Member(s) | 371 Guest(s)
Facebook, Google, Baidu, Apple, Yandex

Latest Threads
problem program runs in a...
Forum: General Coding Help
Last Post: jasserin
8 minutes ago
» Replies: 0
» Views: 8
Creating a deselect butto...
Forum: General Coding Help
Last Post: dwayne091
6 hours ago
» Replies: 2
» Views: 77
Help needed - UN voting r...
Forum: General Coding Help
Last Post: Gribouillis
7 hours ago
» Replies: 1
» Views: 69
[split] Accurate Clicks P...
Forum: Game Development
Last Post: wordtime
8 hours ago
» Replies: 6
» Views: 4,094
Getting KeyError when try...
Forum: Data Science
Last Post: alexanderDennisEnviro500
10 hours ago
» Replies: 0
» Views: 55
Adding a pictures from th...
Forum: GUI
Last Post: ebn852_pan
Today, 01:22 AM
» Replies: 0
» Views: 67
Compare lists
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:00 PM
» Replies: 3
» Views: 104
Schedule exit a program a...
Forum: General Coding Help
Last Post: chubbychub
Yesterday, 03:45 PM
» Replies: 3
» Views: 182
why I can't use "try" wit...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 12:25 PM
» Replies: 4
» Views: 172
Python on Linux
Forum: News and Discussions
Last Post: ebn852_pan
Yesterday, 06:13 AM
» Replies: 6
» Views: 198

 
  Help with passing values in npyscreen
Posted by: Extra - May-14-2022, 02:25 PM - Forum: General Coding Help - Replies (8)

Hello,

I'm playing around with npyscreen to make my terminal application look nicer and be more user friendly.
I'm trying to take in the user's in..... More

Print this item

  error
Posted by: muratuzun - May-14-2022, 02:17 PM - Forum: General Coding Help - Replies (1)

Hello,

When I run the csv file data I have with the following command, I get an error. I wonder if I got this from a ready-made command? What shoul..... More

Print this item

  Web scraping for search results
Posted by: JOE - May-14-2022, 06:32 AM - Forum: Web Scraping & Web Development - Replies (7)

Hi , I was trying to extract search results but has the error "AttributeError: 'list' object has no attribute 'text'[/output]"

Please suggest.

[..... More


Attached Files

Thumbnail(s)
   
Print this item

  sum() list from SQLAlchemy output
Posted by: Personne - May-13-2022, 10:51 PM - Forum: General Coding Help - Replies (5)

Hello guys,

I'm sure it is simple. Have a SQLAlchemy query such as:
[python]qp = db.session.query(UInventory, func.sum(UInventory.quantity).label('to..... More

Print this item

  Invalid syntax
Posted by: Slome - May-13-2022, 08:12 PM - Forum: Homework - Replies (2)

When i run this,


import csv

def main():
with open("battle_royale.csv") as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
..... More


Attached Files

Thumbnail(s)
   
Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  problem program runs in a... 8 minutes ago jasserin jasserin General Codin...
  Creating a deselect butto... 6 hours ago dwayne091 dwayne091 General Codin...
  Help needed - UN voting r... 7 hours ago Mardy Gribouillis General Codin...
  [split] Accurate Clicks P... 8 hours ago Hamti wordtime Game Developm...
  Getting KeyError when try... 10 hours ago alexanderDennisEnviro500 alexanderDennisEnviro500 Data Science
  Adding a pictures from th... Today, 01:22 ebn852_pan ebn852_pan GUI
  Compare lists Yesterday, 22:00 w_i_k_i_d deanhystad General Codin...
  Schedule exit a program a... Yesterday, 15:45 chubbychub chubbychub General Codin...
  why I can't use "try" wit... Yesterday, 12:25 xMaxrayx DeaD_EyE General Codin...
  Python on Linux Yesterday, 06:13 ebn852_pan ebn852_pan News and Disc...
  looking for UTF-8 tools Yesterday, 04:36 Skaperen Skaperen Bar
Most views
  The best Prog... 456946
  Web Scraping ... 338212
  Tutorial Requ... 328093
  Newbie with P... 276331
  Thread remain... 260985
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 341
deanhystad 313
Most replies
  New Users Int... 432
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11883
buran 8091
snippsat 7107
deanhystad 6265
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
jasserin Today
dwayne091 Today
wordtime Today
Mardy Today
w_i_k_i_d Yesterday

User Panel Messages

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