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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:56 AM
» Replies: 4
» Views: 133
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 107
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 77
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 122
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,162
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,373
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,570
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 196
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,202
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,452

 
  Centering and adding a push button to a grid window, TKinter
Posted by: Edward_ - May-20-2023, 04:04 PM - Forum: GUI - Replies (15)

This May be really simple, but I'm not finding enough details to help as I'm just learning TKinter.

I have a simple grid sourced by a Python list, ..... More

Print this item

  Validating and modifying a Spinbox
Posted by: pfdjhfuys - May-20-2023, 03:24 PM - Forum: GUI - Replies (2)

Below is a code snippet of a program that uses the SpinBox control. I want to the control to allow numbers between 1 and 100 as set in from_ ..... More

Print this item

Question image manipulation (cropping and MetaData)
Posted by: SpongeB0B - May-20-2023, 03:19 PM - Forum: General Coding Help - Replies (4)

Hi everyone,

I'm looking for a lightweight python tool(s)/package to manipulate images.

Actually I just need

Print this item

Question [solved] Classes, assign an attributes to a class not to instances..
Posted by: SpongeB0B - May-20-2023, 09:12 AM - Forum: General Coding Help - Replies (4)

Hi everyone,

I would like to create a class with a default dictionary attribute.
and when being Instantiated I would like to add (or not) some ite..... More

Print this item

  How to optimize analog gauge reader?
Posted by: kadink - May-19-2023, 08:58 PM - Forum: Data Science - No Replies

Hi there,

I am writing a program that reads an analog gauge with a webcam and returns the value that the gauge needle points at. (Disclaimer: most ..... More

Print this item

  Why do I have to repeat items in list slices in order to make this work?
Posted by: Pythonica - May-19-2023, 03:59 PM - Forum: General Coding Help - Replies (7)

Hello everyone, I was testing out making a f strings with parts of a list, and after experimenting a lot, I figured out how to make it work but I am c..... More

Print this item

  running the code and seeing the GUI
Posted by: chriswrcg - May-19-2023, 03:04 PM - Forum: GUI - Replies (1)

I am creating a code with pysimplegui and need to see if it is running. I am following along with a youtube tut but when he tests the code He see's t..... More

Print this item

  pyscript index error while calling input from html form
Posted by: pyscript_dude - May-19-2023, 02:53 PM - Forum: General Coding Help - Replies (2)

Hi,
I am trying to embed a python script into an html page via pyscript. I want to call the input from an html form. In python script, if I use
[pyt..... More

Print this item

  Making a question answering chatbot based on the files I upload into python.
Posted by: Joejones - May-19-2023, 02:24 PM - Forum: General Coding Help - Replies (1)

I am using the coding below to get answers from files I upload. The problem is when I run the code it says this "Ask a question based on the text file..... More

Print this item

  convert result to hex ascii
Posted by: Jusufs - May-19-2023, 10:42 AM - Forum: General Coding Help - Replies (6)

Hi.
How to convert in Python3 sets of unsigned integer 16 bits to ASCII equivalent like picture please ?
Input is a 16bit unsigned int witch represe..... More


Attached Files

Thumbnail(s)
   
Print this item

  Beginner: Code not work when longer list
Posted by: raiviscoding - May-19-2023, 08:00 AM - Forum: General Coding Help - Replies (2)

Hello,

I been watching videos from python for everyone and there was this code.

[python]
numlist = list()
while True:
inp = input("Enter a numbe..... More

Print this item

Question Select multiple selection/box at once on frontend.
Posted by: SpongeB0B - May-19-2023, 07:42 AM - Forum: Web Scraping & Web Development - No Replies

Hi everyone,

I would like on a webpage, to be able to select/tick multiple "box/items" at once, by drawing a selection rectangle over them. ( Like ..... More

Print this item

  script to calculate data in csv-files
Posted by: ledgreve - May-19-2023, 07:24 AM - Forum: General Coding Help - No Replies

Hello everyone,

I have a bunch of csv-files (one per corpus) containing annotated data in multiple columns. I annotated aspects and sentiment. The ..... More

Print this item

  an object i would like to have
Posted by: Skaperen - May-18-2023, 07:18 PM - Forum: News and Discussions - Replies (3)

i would like to have an object that operates like a set but iterates its contents in sorted order.

Print this item

  Invalid command error with Entry object
Posted by: eliqm - May-18-2023, 07:00 PM - Forum: GUI - Replies (8)

Hello, I begin in python programmation and i have some problems. I tried to make a handman game with tkinter GUI but I encountered some errors that I ..... More


Attached Files

Thumbnail(s)
               
Print this item

  AttributeError
Posted by: Vidya - May-18-2023, 02:54 PM - Forum: General Coding Help - Replies (2)

HI,

Im new to python im trying to run the project but showing
[error]
class vector(collections.Sequence):
AttributeError: module 'collectio..... More


Attached Files

.py   base.py (Size: 13.17 KB / Downloads: 283)
Print this item

  tkinter AttributeError: 'GUI' object has no attribute
Posted by: pfdjhfuys - May-18-2023, 12:53 PM - Forum: GUI - Replies (3)

Hi,

When I click the button I expect the entry to be populated. Instead I get the error "[b]AttributeError: 'GUI' object has no attribute 'genPass..... More

Print this item

  rename file
Posted by: RolanRoll - May-17-2023, 08:21 PM - Forum: General Coding Help - No Replies

Hi help me please to do this exhausting action I must to rename each manifest files name in each folder (manifest.safe) to be recognized for image pro..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to run detectron2, as python embedded code in C++, on GPU?
Posted by: hassaniqbal931 - May-17-2023, 05:59 PM - Forum: General Coding Help - Replies (3)

I want to run detectron2 prediction as a Python Code embedded in a WebRTC C++ code. I am usi..... More

Print this item

  No desired output for code.
Posted by: James349 - May-17-2023, 03:21 PM - Forum: Homework - Replies (1)

Hello, I am working on a tic-tac-toe project for python for a 7 by 7 grid and I am supposed to define a specific depth and use alpha-beta pruning for ..... More

Print this item

  SQL FTS 5
Posted by: DPaul - May-17-2023, 06:12 AM - Forum: Bar - Replies (14)

Hi,
After OCR, I am left with texts that contain data.
I analyse these texts with python and put the relevant data into records that are inserted into..... More

Print this item

  Visual Studio for Python
Posted by: 357mag - May-16-2023, 10:06 PM - Forum: News and Discussions - Replies (4)

Just wondering what IDE you guys are using? I'm using WingWare which appears quite good. I was wondering if any of you are using Visual Studio for Pyt..... More

Print this item

  Visual Studio Code
Posted by: NewPi - May-16-2023, 09:52 PM - Forum: General Coding Help - Replies (3)

Hey,

I use Visual Studio Code and the Python extension.
When I hover over "random.choices(...)" it shows, that choices is a variable.

I don't u..... More

Print this item

  Supervised learning, tree based model - problems splitting data
Posted by: Pixel - May-16-2023, 05:25 PM - Forum: Data Science - No Replies

I am currently using a tree based model for self training purposes and there is one area of code I get stuck. I used One-hot code to extract addition..... More

Print this item

  Trying to install bdfr from github
Posted by: visionz199 - May-16-2023, 04:50 PM - Forum: General Coding Help - Replies (2)

For the past few hours I have been trying to install bdfr (https://github.com/aliparlakci/bulk-down...for-reddit) from github, but I can't find a ..... More

Print this item

  Translation
Posted by: AliceCu - May-16-2023, 04:39 PM - Forum: General Coding Help - Replies (2)

I don't understand why I have the result in English. I need to translate it in Russian
[python]from deep_translator import GoogleTranslator
import r..... More

Print this item

  TypeRoor reading json
Posted by: GreenLynx - May-16-2023, 08:54 AM - Forum: General Coding Help - Replies (3)

Hi,
I’m trying to read a json url however I’ve got this error:
“TypeError: list indices must be integers or slices, not str”

This is de json url:..... More

Print this item

  Plotting by Time, error
Posted by: mansoorahs - May-16-2023, 04:05 AM - Forum: General Coding Help - Replies (1)

Hi

Observing following error while plotting the series by time


[error]TypeError: float() argument must be a string or a real number, not 'date..... More

Print this item

  Excel Automation using Openpyxl
Posted by: pradyumnajpn - May-16-2023, 02:02 AM - Forum: General Coding Help - Replies (1)

Hi Experts,

Very new to python specially excel automation. Please suggest
I ve an excel template having a header and a sample data. Now depending ..... More

Print this item

  [solved] how to speed-up huge data in an ascii file ?
Posted by: paul18fr - May-15-2023, 07:31 PM - Forum: Data Science - Replies (4)

I've not paid any attention on that topic so far, but now I'm wondering how I can write (in a fast way) a huge amount of data in an [u][b]ascii file[/..... More

Print this item

  Database that can compress a column, or all data, automatically?
Posted by: Calab - May-15-2023, 05:53 PM - Forum: General Coding Help - Replies (3)

I have a Sqlite3 database that I use to store testing data. Most of the columns are small but one column can be HUGE as it stores the JSON results fro..... More

Print this item

  Index error help
Posted by: MRsquared - May-15-2023, 02:41 PM - Forum: General Coding Help - Replies (1)

Hi,

I am extracting historic data from a scraping website using the following code. However, I get the error 'IndexError: index 228 is out of bound..... More

Print this item

  Problem with Pyinstaller. No module named '_tkinter'
Posted by: tonynapoli2309 - May-15-2023, 02:38 PM - Forum: General Coding Help - No Replies

Hello, I'm trying to obtain a single exectuable file to run on my MAC M1.

I use Pyinstaller in this way:

[b]pyinstaller --onefile myproject.py[/..... More

Print this item

  [BeautifulSoup] Find </body>?
Posted by: Winfried - May-15-2023, 09:49 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

Does someone know how to find the "</body>" closing bit in an HTML file?

[python]from bs4 import BeautifulSoup as bs

soup = bs("file...... More

Print this item

Lightbulb Swahili Frashcard program
Posted by: Milan - May-15-2023, 09:29 AM - Forum: Code sharing - No Replies

Hello team,

I would like to share a project.

It is a flashcard card program that helps people to learn Swahili words.

Swahili is a language s..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... Today, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578711
  Tutorial Requ... 509260
  Web Scraping ... 441853
  Newbie with P... 385807
  New Users Int... 375162
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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