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,712
» Latest member: venom5iix
» Forum threads: 37,429
» Forum posts: 170,080

Full Statistics

Online Users
There are currently 391 online users.
» 0 Member(s) | 383 Guest(s)
Bing, Yandex, Facebook, Google, Applebot, Mojeek

Latest Threads
Calculating Average with ...
Forum: General Coding Help
Last Post: snippsat
3 hours ago
» Replies: 2
» Views: 160
Visualizing musician char...
Forum: Data Science
Last Post: Pedroski55
5 hours ago
» Replies: 3
» Views: 192
how to: explicitly select...
Forum: General Coding Help
Last Post: sawtooth500
8 hours ago
» Replies: 0
» Views: 65
Learning process
Forum: Bar
Last Post: Gribouillis
Yesterday, 07:55 PM
» Replies: 1
» Views: 81
Flask role-based authoriz...
Forum: Web Scraping & Web Development
Last Post: erdemath
Yesterday, 07:26 PM
» Replies: 13
» Views: 260
Suggestion on how to spee...
Forum: General Coding Help
Last Post: sawtooth500
Yesterday, 07:13 PM
» Replies: 1
» Views: 98
Method returning None
Forum: General Coding Help
Last Post: husksedgier
Yesterday, 06:38 PM
» Replies: 2
» Views: 140
Joblib worker error
Forum: General Coding Help
Last Post: sawtooth500
May-03-2024, 06:44 PM
» Replies: 1
» Views: 102
Do regular expressions st...
Forum: General Coding Help
Last Post: rishika24
May-03-2024, 09:05 AM
» Replies: 3
» Views: 204
Connecting to Remote Serv...
Forum: General Coding Help
Last Post: Pedroski55
May-03-2024, 07:23 AM
» Replies: 1
» Views: 163

 
Question Program: Assign roles to players depending on priorities
Posted by: raquel86 - May-16-2022, 11:10 AM - Forum: Homework - No Replies

Hi!
I'm new in the forum and I hope this is the right place to ask this. I need guidance to develop a program in Python. I wouldn't exactly need the ..... More

Print this item

  listbox selection
Posted by: DPaul - May-16-2022, 09:30 AM - Forum: GUI - Replies (4)

Hi,
I have a listbox for MULTIPLE selection.

def getElement(event):
    selection = event.widget.curselection()
the variable "sel..... More

Print this item

  Make Random Choices the same [SOLVED]
Posted by: AlphaInc - May-16-2022, 09:17 AM - Forum: General Coding Help - Replies (6)

Hello everybody,

I wanted to set up a list of strings and print one randomly.
This was really easy to set up:
[python]
#Random Variables
myList..... More

Print this item

  Passionate Python developer from India "waiting" :/ to get hired
Posted by: sunando_samaddar - May-16-2022, 07:20 AM - Forum: Jobs - Replies (3)

Hi, I've been struggling, and struggling, and struggling in my city, Kolkata, for the last 8 years. Sad It's time I need somebody who can hire me..... More


Attached Files

.pdf   resume052022.pdf (Size: 76.12 KB / Downloads: 3)
Print this item

  Refresh token for Wyze SDK
Posted by: duckredbeard - May-16-2022, 04:33 AM - Forum: General Coding Help - No Replies

I have added a few Wyze smart bulbs to my home security system, running them on their own program but using door sensors from the security program. E..... More

Print this item

  Mixed types of numeric data in the statistics module
Posted by: stevendaprano - May-16-2022, 02:49 AM - Forum: News and Discussions - Replies (2)

Users of the statistics module, how often do you use it with heterogeneous data (mixed numeric types)?

Currently most of the functions try hard to ..... More

Print this item

  How to instantly update the plot by getting values from a Scale widget?
Posted by: OLE - May-15-2022, 09:30 PM - Forum: GUI - Replies (20)

I have a 3d grid system of 3*4*10 grids (nx*ny*nz), and I have assigned a random value to each grid. I want to plot different surfaces o..... More

Print this item

  How do I solve the second problem?
Posted by: Cranberry - May-15-2022, 05:37 PM - Forum: General Coding Help - Replies (1)

I'm stuck, I'm looking to know how to do the Second Problem. I'll share what I have for the first problem in hopes of getting help with the sec..... More

Print this item

  Problem with searching over Beautiful Soap object
Posted by: Pavel_47 - May-15-2022, 09:37 AM - Forum: Web Scraping & Web Development - Replies (30)

Hello,

Here is BS object where I want to extract "publisher" value.
The value I want to extract is [b]Springer; 1st ed. 2020 edition (April 27, 20..... More

Print this item

  QAbstractTableModel: Indexing a list of dictionaries
Posted by: BigMan - May-15-2022, 03:47 AM - Forum: GUI - Replies (1)

Hi,

I have a list of dictionaires. Something like that:

[python]
addressbook = []
address_1 = {"city": "Berlin", street": "Alexanderplatz"}
a..... More

Print this item

  (OpenCV) Help to improve code for object detection and finding center of it
Posted by: saoko - May-14-2022, 05:34 PM - Forum: General Coding Help - No Replies

Hello. I'm writing the code to find contours and extract the bounding rectangle coordinates, then find center coordinate and draw center point. But I'..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calculating Average with ... 3 hours ago mikasa snippsat General Codin...
  Visualizing musician char... 5 hours ago Drone4four Pedroski55 Data Science
  how to: explicitly select... 8 hours ago sawtooth500 sawtooth500 General Codin...
  Learning process Yesterday, 19:55 Butiournin1976 Gribouillis Bar
  Flask role-based authoriz... Yesterday, 19:26 erdemath erdemath Web Scraping ...
  Suggestion on how to spee... Yesterday, 19:13 sawtooth500 sawtooth500 General Codin...
  Method returning None Yesterday, 18:38 husksedgier husksedgier General Codin...
  Joblib worker error 05-03, 18:44 sawtooth500 sawtooth500 General Codin...
  Do regular expressions st... 05-03, 09:05 bobmon rishika24 General Codin...
  Connecting to Remote Serv... 05-03, 07:23 ChaitanyaSharma Pedroski55 General Codin...
  World Clock syntax error 05-03, 05:20 OscarBoots snippsat General Codin...
Most views
  The best Prog... 431055
  Web Scraping ... 318472
  Tutorial Requ... 307850
  Newbie with P... 261081
  Thread remain... 245572
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11875
buran 8090
snippsat 7096
deanhystad 6232
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
venom5iix Today
Butiournin1976 Yesterday
thisistrivial Yesterday
TimsothyKat Yesterday
ShaneTalksTech Yesterday

User Panel Messages

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