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,937
» Latest member: bennyanderson482
» Forum threads: 38,723
» Forum posts: 175,511

Full Statistics

Online Users
There are currently 45 online users.
» 1 Member(s) | 34 Guest(s)
Google, Applebot, AOL, AOL, Facebook Dev, ShanePulse

Latest Threads
OLanePulse
Forum: General Coding Help
Last Post: ShanePulse
Less than 1 minute ago
» Replies: 0
» Views: 1
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 1
» Views: 56
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 3,081
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,499
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 516
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 776
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,879
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 869
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 455
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,416

 
  Can't get tkinter button to change color based on changes in data
Posted by: dford - Feb-12-2022, 10:06 PM - Forum: GUI - Replies (4)

I'm trying to get a "Save" button color to change color if any form data has been changed. I got this to work once before but misplaced my flash driv..... More

Print this item

  Use ranking function for different lists
Posted by: klatlap - Feb-12-2022, 09:19 PM - Forum: General Coding Help - Replies (6)

Hi.

I have a function that i use to rank a list from highest to lowest, right now it is hard coded to one list, what i would like to be able to do ..... More

Print this item

Question Having trouble writing an Enum with a custom __new__ method
Posted by: stevendaprano - Feb-12-2022, 10:32 AM - Forum: General Coding Help - Replies (3)

I have an enum subclass where I need to associate two pieces of data with each enum. The first is used for the enum value itself, the second needs to ..... More

Print this item

  [split] [split] New to the forum, how to post a question?
Posted by: karnik - Feb-12-2022, 08:02 AM - Forum: General Coding Help - Replies (2)

Please find my code , I am getting below error

[python]class it :
def rec (self,c,id,ac,bd,ad,bc):
return (c + id)(ac - bd) + (ad + bc)

a ..... More

Print this item

  How can I solve this file handling issue?
Posted by: GiggsB - Feb-12-2022, 06:52 AM - Forum: General Coding Help - Replies (17)

I am using SPI communication protocol, where a microcontroller sends data to the Raspberry Pi. Raspberry Pi collects this data and stores it in a file..... More

Print this item

  About Tkinter Treeview.selection_get() usage.
Posted by: water - Feb-11-2022, 07:03 PM - Forum: GUI - Replies (3)

Tkinter Treeview widget has selection_get, but document not introduce about that, how to use it?

[python]from tki..... More

Print this item

  PYQT charts in tabs
Posted by: frohr - Feb-11-2022, 06:55 PM - Forum: General Coding Help - Replies (10)

Hi, I need draw charts in two tabs. It there any easy way how to do it? Thank you for help.

This is my code.

[python]
import sys
from PyQt5.Q..... More

Print this item

  Hi can you help me this reaction kinetics
Posted by: Vengdasan - Feb-11-2022, 03:54 PM - Forum: General Coding Help - Replies (4)

[python]
import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
import math

def rxn(M,t):
R = 8.314
T ..... More

Print this item

  [split] Results of this program in an excel file
Posted by: eisamabodian - Feb-11-2022, 12:31 PM - Forum: General Coding Help - Replies (1)

Hi.
I want to get the results of this program in an excel file.
Nine numbers.I have the results in terminal in python without any problem but how ca..... More

Print this item

  Playing around with a clock's seconds in tkinter
Posted by: menator01 - Feb-11-2022, 10:25 AM - Forum: Code sharing - Replies (1)

Has a grid of numbers from 00 - 59 that highlights the background matching the clocks seconds.

[python]
import tkinter as tk
from time import str..... More

Print this item

  How can I ignore empty fields when scrapping
Posted by: never5000 - Feb-11-2022, 09:19 AM - Forum: Web Scraping & Web Development - No Replies

I'm gathering Card data for a game I like. some cards don't have the certain text and others do, the script searches for it and when it comes across a..... More

Print this item

  CSV to Text File and write a line in newline
Posted by: atomxkai - Feb-11-2022, 12:35 AM - Forum: General Coding Help - Replies (4)

Hello,
The script generates output as 1 line for each record but I wanted to separate the output that looks like this. Your response is greatly app..... More


Attached Files

.csv   datafile.csv (Size: 161 bytes / Downloads: 317)
Print this item

  How to insert different types of data into a function
Posted by: DrData82 - Feb-10-2022, 10:41 PM - Forum: General Coding Help - No Replies

I'm trying to design a function that will insert both a different "oldTable", string, and column name for each iteration. The "withColumn" calculation..... More

Print this item

  Migrating data from oracle into postgres
Posted by: python_student - Feb-10-2022, 08:52 PM - Forum: General Coding Help - Replies (1)

I am trying to migrate data from oracle into postgres using python. My code follow bellow.

[python]def insert_postgres():

con = OracleHook(..... More

Print this item

  Find if chain of characters or number
Posted by: Frankduc - Feb-10-2022, 05:29 PM - Forum: General Coding Help - Replies (4)

Hello,

Try to determine if its a chain of characters or numbers.

[python]
mot = input("input something: ")

for num in mot:
if num not in "0123..... More

Print this item

  How can I target and scrape a data-stat
Posted by: never5000 - Feb-10-2022, 04:29 PM - Forum: Web Scraping & Web Development - Replies (5)

I’m trying to scrape data from page.
There are no classes in the HTML that I can use, but they do have data-stat ID’s how can I target them to scrap..... More

Print this item

  Inverted Index
Posted by: thewal - Feb-10-2022, 03:54 PM - Forum: Data Science - No Replies

Hi,
I am trying to create an Inverted Index, but I cant seem to get it working.
So I have read in xml files that contain ID, DESC and TEXT, and have..... More

Print this item

  How to plot confusion matrix of multiclass classification
Posted by: Vaishali - Feb-10-2022, 02:34 PM - Forum: General Coding Help - No Replies

y_pred.shape = (91,48)
y_true.shape = (91,48)

I want confusion matrix of (48X48)
When I print confusion matrix using argmax, It gives matrix of (..... More

Print this item

  try except in wmi code
Posted by: ilknurg - Feb-10-2022, 02:21 PM - Forum: General Coding Help - Replies (3)

How can i use try except in this code script?
I want to print an error message when the connection refused.
Sorry for this simple question but im a ..... More

Print this item

  UnboundLocalError: local variable 'wmi' referenced before assignment
Posted by: ilknurg - Feb-10-2022, 12:37 PM - Forum: General Coding Help - Replies (2)

I have the code below. When i run it, i get this error

UnboundLocalError: local variable 'wmi' referenced before assignment

How can i sol..... More

Print this item

  Fitting transfer function model to FRF data
Posted by: ymohammadi - Feb-10-2022, 10:02 AM - Forum: Data Science - No Replies

I'm new to python and trying to find a way to fit a transfer function to FRF data. Something similar to sys = tfest(data,np,nz) in matlab where the in..... More

Print this item

Information Estimating transfer function from frd data
Posted by: ymohammadi - Feb-10-2022, 10:00 AM - Forum: General Coding Help - No Replies

I'm new to python and trying to find a way to fit a transfer function to FRF data. Something similar to sys = tfest(data,np,nz) in ma..... More

Print this item

  Making a plot with secondary y-axis bigger
Posted by: snkm - Feb-10-2022, 09:40 AM - Forum: General Coding Help - No Replies

Hello I'm new here, I hope someone can help me :)
I'm trying to understand how to make a plot, which has a secondary axis, bigger. I tried with plt...... More

Print this item

  Reduce four for loops or parallelizing code in Python
Posted by: cee878 - Feb-10-2022, 06:14 AM - Forum: Data Science - Replies (1)

I have this code that I have been working and creating data based on my actual data. I am using pandas and Python. Here is how my code looks like:
[p..... More

Print this item

  benchmarking parts of Pyhon
Posted by: Skaperen - Feb-10-2022, 06:03 AM - Forum: News and Discussions - No Replies

searching for benchmarking of Python i find tons of tutorials (he value of which i did not determine) and many tools to benchmark a function or applic..... More

Print this item

  Best way to download the contents of a web directory.
Posted by: Pedroski55 - Feb-10-2022, 02:24 AM - Forum: General Coding Help - Replies (2)

What is the best way to download the contents of my webpage directory:

www.mywebpage.com/uploadFiles/php/uploads

The contents will be lots of se..... More

Print this item

  Help with coding/ideas
Posted by: natalie - Feb-09-2022, 11:20 PM - Forum: General Coding Help - Replies (6)

Can you help me with that please? I need to write a function max(L) which, for a given int-list L of length n≥1, returns the maximum length of an unim..... More

Print this item

  breakout clone
Posted by: flash77 - Feb-09-2022, 07:27 PM - Forum: Game Development - Replies (32)

Hi,
I'm new to python/pygame and I'm trying to program a breakout clone.
I've got an error message: self = {Paddle} Unable to get repr for <class 'p..... More

Print this item

  Append data to Yaml section
Posted by: tbaror - Feb-09-2022, 06:56 PM - Forum: General Coding Help - No Replies

Hello ,

I am trying to append in loop sub sections into a Yaml ,using Pyyaml ,the yaml is below , didn't have a success until now

The section i ..... More

Print this item

  How to bind a midi signal to tkinter?
Posted by: philipbergwerf - Feb-09-2022, 04:58 PM - Forum: General Coding Help - Replies (1)

My program renders a score. The render() function is a big heavy function. Inside a thread I run a while loop that checks if a connected midi controll..... More

Print this item

  Format SAS DATE
Posted by: Racer_x - Feb-09-2022, 04:44 PM - Forum: General Coding Help - No Replies

Having a issue locating the proper format.

[python]for k, v in ds.items():
v.label = k.title()
print(v.dtype )
..... More

Print this item

  Help with pygame but not an actual game
Posted by: lew247 - Feb-09-2022, 02:25 PM - Forum: General Coding Help - No Replies

Hi all
I'm very new to Python and programming other than in Basic many years ago
I'm trying to get an Earthquake monitor working as ..... More


Attached Files

.py   DisplayManager.py (Size: 5.25 KB / Downloads: 328)
.py   EQMap.py (Size: 3.45 KB / Downloads: 263)
Print this item

  Can I Limit Value used by python
Posted by: pajd - Feb-09-2022, 01:05 PM - Forum: General Coding Help - Replies (9)

Hello everyone
New user here and VERY new to Python so still learning a lot on it.

In my code below I use this to call an Api using 'Method' and ..... More

Print this item

  Understaning simple reading object
Posted by: korenron - Feb-09-2022, 08:30 AM - Forum: General Coding Help - Replies (3)

Hello,
I'm missing something very simple

I'm reading BLE data using https://github.com/IanHarvey/bluepy

on this part I want to know all the i..... More

Print this item

  Updating nested dict list keys
Posted by: tbaror - Feb-09-2022, 08:26 AM - Forum: General Coding Help - Replies (2)

Hello ,

I am trying to update values in in dict that construct from nested dict and list the dict as follows

[python]dict_file ={'job_name': 's..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  OLanePulse Less than 1 minute ago ShanePulse ShanePulse General Codin...
  C++ program embedding Pyt... 2 hours ago Alexandros Larz60+ General Codin...
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 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...
Most views
  The best Prog... 576043
  Tutorial Requ... 497507
  Web Scraping ... 440004
  Newbie with P... 383770
  New Users Int... 366259
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+ 12089
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bennyanderson482 Today
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday

User Panel Messages

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