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,467
» Latest member: Shailesh
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 713 online users.
» 0 Member(s) | 710 Guest(s)
Google, Bing, Yandex

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
25 minutes ago
» Replies: 1
» Views: 114
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
48 minutes ago
» Replies: 1
» Views: 43
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
9 hours ago
» Replies: 4
» Views: 1,277
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
Today, 12:25 AM
» Replies: 0
» Views: 56
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 05:21 PM
» Replies: 5
» Views: 302
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
Yesterday, 04:02 PM
» Replies: 16
» Views: 1,097
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
Yesterday, 09:04 AM
» Replies: 1
» Views: 342
Pip help
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 05:57 AM
» Replies: 4
» Views: 379
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
Yesterday, 01:12 AM
» Replies: 2
» Views: 967
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 199

 
  Strange argument count error
Posted by: rowan_bradley - Aug-05-2023, 04:57 PM - Forum: General Coding Help - Replies (3)

I am trying to call a function in a library written by someone else. Here is my code:
[python]
import growattServer
import datetime
import time
f..... More

Print this item

  Wrong type error
Posted by: rowan_bradley - Aug-04-2023, 04:29 PM - Forum: General Coding Help - Replies (6)

I'm trying to use a library writen by someone else. Here is a simplified version of my source code:

[python]import growattServer
import datetime
..... More

Print this item

  Help create scrollbar in chatbot with tkinter on python
Posted by: fenec10 - Aug-04-2023, 01:33 PM - Forum: GUI - Replies (4)

Hi everyone, I'm trying to create a chatbot, the chatbot is ok but I'm struggling with the scrollbar, when I run my code everything is ok except the s..... More

Print this item

  Coding answer for newbie
Posted by: cg3 - Aug-04-2023, 01:22 PM - Forum: Homework - Replies (2)

Write a Python program to find out the average of a set of integers. The integers are given to your program as a single input separated by spaces.

..... More

Print this item

  File Chooser will not close
Posted by: noob82 - Aug-04-2023, 03:32 AM - Forum: GUI - Replies (10)

Good Evening,

I just learned about the existence of tkinter as I was trying to create a dialog box to allow users to select file, and then import t..... More

Print this item

  doing string split with 2 or more split characters
Posted by: Skaperen - Aug-04-2023, 02:53 AM - Forum: General Coding Help - Replies (22)

if i have the string 'ab|cd!ef|gh!ij|kl!mn' and want to split it into ['ab','cd','ef','gh','ij','kl','mn'], is there..... More

Print this item

  AttributeError: '_tkinter.tkapp' object has no attribute 'username'
Posted by: Konstantin23 - Aug-03-2023, 08:56 PM - Forum: General Coding Help - Replies (4)

I was following up with multiple tutorials online for designing a tkinter gui app for a password manager program I made recently, and so I split up th..... More

Print this item

Sad Why it won't run?
Posted by: hansemso - Aug-03-2023, 08:30 PM - Forum: General Coding Help - Replies (6)

https://replit.com/@hansemso/arithmeticf...er#main.py

Why won't it run? I'm doing the freecodecamp Python test #1. This is somebody's sample I..... More

Print this item

  Pyserial issues with proper loops and binary
Posted by: jttolleson - Aug-03-2023, 07:59 PM - Forum: General Coding Help - Replies (16)

So i bought my python programmable Lidar Chip and havent recieved data yet because after opening it up in pyserial i have no idea how to test it...
..... More


Attached Files

Thumbnail(s)
               
Print this item

  flushing output buffers
Posted by: Skaperen - Aug-03-2023, 01:36 AM - Forum: News and Discussions - Replies (4)

output to 2 open files that are buffered may get alternating output calls. when that output finally goes to a common file destination, output is mixe..... More

Print this item

  Pip install problem with Python 3.7, not 3.9
Posted by: Mark98 - Aug-02-2023, 08:24 AM - Forum: General Coding Help - Replies (2)

Hi,

I have a Raspberry PI in OS Raspbian GNU/Linux v 10. Debian version is 10.13
Till some days ago I used Python 2.7 without problem.
I had to u..... More

Print this item

  Problem trying to install UniCurses on Python-3.12 / W10-64
Posted by: rdmaia - Aug-02-2023, 07:49 AM - Forum: General Coding Help - Replies (5)

Hi all!
Regards

I'm trying to install UniCurses on Python-3.12, under W10-64

Downloaded its pack (UniCurses-1.2.win32.exe build 10/nov/2010), b..... More

Print this item

  First piece of code
Posted by: Bearwulf - Aug-02-2023, 02:49 AM - Forum: General Coding Help - Replies (2)

Hey team,

I have worked on a piece of code that should be able to read my question on sustainability and produce me an answer with some ideas based..... More

Print this item

  Rename files in a folder named using windows explorer
Posted by: hitoxman - Aug-01-2023, 11:42 PM - Forum: General Coding Help - Replies (3)

Hi everyone,

Many of us know we can rename multiple files with windows explorer following the steps here:

..... More

Print this item

  QListWidget, no item was selected
Posted by: flash77 - Aug-01-2023, 06:37 PM - Forum: GUI - Replies (4)

Hi,

if I have a listwidget, is it possible to detect if no item of the listwidget was selected?

I searched the web, but found nothing helpful........ More

Print this item

  Error on import: SyntaxError: source code string cannot contain null bytes
Posted by: kirkwilliams2049 - Aug-01-2023, 03:11 PM - Forum: General Coding Help - Replies (7)

I am following a Python tutorial and have created the following module(from the tutorial) in Notepad under Windows 11:

[python]def fib(n): # write..... More

Print this item

Sad How to split a String from Text Input into 40 char chunks?
Posted by: lastyle - Jul-31-2023, 06:58 PM - Forum: General Coding Help - Replies (7)

Hi all.

I Need a Solution split String a String into 40 char chunks.

The String is from a User Input and can be longer (between 1 and 290 Chars..... More

Print this item

  Python Tic Tac Toe with Functions
Posted by: jorisnl - Jul-31-2023, 04:00 PM - Forum: Code Review - Replies (2)

Hi all,

I have written a Python Tic Tac Toe game with functions for 2 players on a shared keyboard. I am interested in feedback. It works well, but..... More

Print this item

  How do you change your horizontal scrolling background to a vertical one?
Posted by: Kalebre - Jul-31-2023, 02:42 PM - Forum: Game Development - No Replies

I was making a platformer game using PyGame. After some time I decided to change the game to a vertical parkour map, but I dont know how to change it ..... More

Print this item

  Help with variable in between modules
Posted by: llxxzz - Jul-31-2023, 02:27 PM - Forum: General Coding Help - Replies (5)

Hi All,
first apologizes for my poor scripting - I am a beginner.
I have found lots of information about my doubt but none could actually solve my..... More

Print this item

  How can I rearrange df as the nodes index in pytorch geometric manner?
Posted by: uqlsmey - Jul-31-2023, 11:28 AM - Forum: General Coding Help - No Replies

How can I rearrange df as the nodes index in pytorch geometric manner?

This is my code

[python]data = {'Source': ['Rainfall', 'SP2', 'SP2', 'Inflow..... More

Print this item

  Multivariate Analysis of Ecology Data
Posted by: Will_Robertson - Jul-31-2023, 11:22 AM - Forum: Data Science - Replies (2)

I'm writing code to do statistical analysis of ecological data as part of a voluntary research project. Where the independent variables are continuous..... More

Print this item

  Database, embedded python
Posted by: janeik - Jul-31-2023, 10:45 AM - Forum: Game Development - Replies (4)

hello. To not be used regarding game, but this forum was the best I could pick.
I think I should use a db to store/search informations from my python..... More

Print this item

  FileNotFoundError: [WinError 2] The system cannot find the file specified
Posted by: NewBiee - Jul-31-2023, 08:39 AM - Forum: General Coding Help - Replies (2)

Hi,

I get this error when I run my code:

[error]File "C:\Users\Me\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771,..... More

Print this item

  Python Launcher INI File
Posted by: leodavinci1990 - Jul-30-2023, 02:41 PM - Forum: General Coding Help - Replies (1)

I cannot find the Python Launcher Configuration File (.INI) under C:\Windows or Under C:\Users\XXX\AppData\Local\ .
The launcher itself is found in C..... More

Print this item

  String int confused
Posted by: janeik - Jul-30-2023, 12:55 PM - Forum: General Coding Help - Replies (7)

ny help to get the proper syntax regarding zoom. (great confusion in tha family).
Anyone?[python]
lblzoomlvl = customtkinter.CTkLabel(window, width=..... More

Print this item

  GUI Problem / call another function / fill QListwidget
Posted by: flash77 - Jul-29-2023, 04:26 PM - Forum: GUI - Replies (5)

I am a hobby programmer and would like to write a program that supports, among other things, the scanning of double-sided paper with a one-sided feede..... More

Print this item

  Website Search Assistance Needed
Posted by: CaptianNewb - Jul-29-2023, 03:51 PM - Forum: General Coding Help - Replies (15)

Hi,
I decided to combine my love for good tequila and being a nerd and am trying to read the site below for a particular bottle I like that doesn't c..... More

Print this item

  trying to run mayabatch from python opencue
Posted by: robertkwild - Jul-29-2023, 09:37 AM - Forum: General Coding Help - Replies (3)

hi all,

so i have nearly got opencue to work with maya but the last hurdle is when i try to get opencue to render a maya job it fails as it cant op..... More

Print this item

  Python: Ignore\Exclude files that contain words
Posted by: Melcu54 - Jul-28-2023, 04:24 PM - Forum: Code sharing - No Replies

maybe someone needs this information

[python]def save_to_pdf(directory_path):
modified_files = []
file_count = 0
for root, di..... More

Print this item

  Replacing String Variable with a new String Name
Posted by: kevv11 - Jul-28-2023, 03:26 PM - Forum: General Coding Help - Replies (2)

Hello,

It has been a while since I have coded in C++, and I am new to python since I am currently making macros for a CFD software called STAR-CCM...... More

Print this item

  I want to be able to scroll up in curses to see previous text.
Posted by: Caiden - Jul-27-2023, 08:47 PM - Forum: General Coding Help - Replies (2)

I have some code that just prints the same thing over and over and its numbered but when I try scrolling up it doesn't work, But I wanna be able to sc..... More

Print this item

  How to code a musical slur in python tkinter?
Posted by: philipbergwerf - Jul-27-2023, 04:21 PM - Forum: General Coding Help - No Replies

Hello, not good at math haha. So I have a little app and I want to know how to create a good musical slur like in sheet music using tkinter canvas. In..... More

Print this item

  xlwings error when reading a workbook
Posted by: Mishal0488 - Jul-27-2023, 01:45 PM - Forum: General Coding Help - Replies (1)

Hi Guys

I have some code which reads reads an excel file and there after uses the data to develop stress plots of structural sections.
I literally..... More

Print this item

  Speeding up code using cache
Posted by: Peter - Jul-27-2023, 01:17 PM - Forum: General Coding Help - Replies (1)

I'm good with Python and use functions to process large datasets from files, then return the results. I've realized these input files and other parame..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 25 minutes ago Azdaghost deanhystad General Codin...
  Import vs from x import 48 minutes ago Calab snippsat General Codin...
  Trouble with Average Calc... 9 hours ago autodecay Pate General Codin...
  tracking version during r... Today, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... Yesterday, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... Yesterday, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... Yesterday, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help Yesterday, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... Yesterday, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 563738
  Tutorial Requ... 449511
  Web Scraping ... 428728
  Newbie with P... 363118
  Thread remain... 335617
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Shailesh Today
jackdennis272 Today
JeanChristophe Yesterday
EZEKIELGRAPHICSMEDIA Yesterday
BarbaraGonzalez Yesterday

User Panel Messages

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