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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

Online Users
There are currently 36 online users.
» 1 Member(s) | 27 Guest(s)
Bing, Google, Mojeek, Facebook Dev, AOL, snippsat

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 94
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 60
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 60
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 316
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 45
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 73
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 267
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 143
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 239
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 423

 
  How to use Logging with multiprocessing in Python3
Posted by: CR93 - Dec-28-2020, 10:52 PM - Forum: General Coding Help - Replies (1)

I am trying to use python built in logging with multiprocessing. Goal -- is to have errors logged to a file called "error.log" Issue -- The errors are..... More

Print this item

  tkinter touchscreen scrolling - button press makes unwanted scrolling
Posted by: nanok66 - Dec-28-2020, 08:57 PM - Forum: GUI - Replies (1)

Hi all,

I have a python tkinter GUI that I am using with a touchscreen. One page on my GUI has more buttons than can fit in one screen, so I found..... More

Print this item

  How to subtract columns with dates?
Posted by: jpy - Dec-28-2020, 08:35 PM - Forum: Data Science - Replies (3)

Hi everyone, I have the code below that first creates a column with today's date (works) then I subtract an existing column but I get a TypeError. I r..... More

Print this item

  Exam
Posted by: mah200111 - Dec-28-2020, 08:16 PM - Forum: Homework - Replies (1)

I have a exam tomorrow in python who can help me?! Sad Sad

Print this item

  Can I format decimal places by column with a dictionary?
Posted by: Mark17 - Dec-28-2020, 02:50 PM - Forum: General Coding Help - Replies (2)

Here's some code:
[Python]
markets = {'ES':2, 'GC':1, 'CL':2, 'EC':4, 'US':4}
merge_list = []
pd.options.display.float_format = '{:.2f}'.format
..... More

Print this item

  Am I done?
Posted by: eyadali05 - Dec-28-2020, 12:58 PM - Forum: Bar - Replies (1)

I have been programming python for 2 years by now, I have GCSE's this year, so I did'nt have time to program like before. So Yesterday I have tried to..... More

Print this item

  how to sort a list without .sort() function
Posted by: letmecode - Dec-28-2020, 12:47 PM - Forum: Homework - Replies (3)

Hey there.

I would like to understand how I can sort the strings in a list alphabetically, but without using the sort/sorted function.

For examp..... More

Print this item

  want to stream rtsp from my Pi camera
Posted by: korenron - Dec-28-2020, 08:23 AM - Forum: Networking - No Replies

Hello ,
I found a python code that create a webpage and stream my camera into it
I want to "upgrade" the code and be able to connect the camera us..... More

Print this item

  How to Copy Single Value From One Excel Sheet to Another
Posted by: SunWers - Dec-28-2020, 05:45 AM - Forum: General Coding Help - Replies (4)

Hi Everyone,

I'm trying to copy one value from a worksheet to another, but I'm doing something wrong. Can someone help me understand how to do this...... More

Print this item

  Interrupt for Adafruits Neotrellis button/led board
Posted by: Moris526 - Dec-28-2020, 05:40 AM - Forum: General Coding Help - No Replies

Hi all.

I have 32 Adafruits Neotrellis boards (8x8 led/button) making a big led/button board, controlled with Raspberrypi zero.

Adafruits page says ..... More

Print this item

  [split] How to calculate tax with a variable input and if else
Posted by: rokemas - Dec-28-2020, 05:29 AM - Forum: Homework - Replies (1)

Hey afefDXCTN

First of all Im very glad I'm not the only one who's struggling with (easy) labs in python.

Here is my code though its not complet..... More

Print this item

  using xmp toolkit
Posted by: gratefuldead - Dec-28-2020, 04:38 AM - Forum: General Coding Help - Replies (1)

I have downloaded and installed the xmp toolkit. But while using it, it gave the exempi error. I downloaded the exempi library too.

But the exempi ..... More

Print this item

  How do I reduce the time to Invoke Macro via Python?
Posted by: JaneTan - Dec-28-2020, 03:47 AM - Forum: General Coding Help - Replies (1)

I noted that when I invoke a macro (via Python) to do some stuff in my Excel workbook it takes longer than if I write the code in Python to do it dire..... More

Print this item

  pip and venv virtual environments
Posted by: soupworks - Dec-28-2020, 12:51 AM - Forum: General Coding Help - Replies (2)

I am looking for some direction for venv virtual environments.

I'm running Python 3.9

If I use virtual environments with venv, I believe by default ..... More

Print this item

  Problems Sorting Data in an External File (.txt)
Posted by: Superlegend21 - Dec-27-2020, 09:22 PM - Forum: General Coding Help - Replies (1)

I'm creating a Leaderboard for my Two-Player Dice Rolling Game, I want the Data inside the File to be Sorted in order and neatly presented.
[b]Object..... More

Print this item

Bug Qt app won't crash after sys.excepthook override
Posted by: Alfalfa - Dec-27-2020, 08:16 PM - Forum: GUI - Replies (3)

As detailed in the docs, all exceptions can be caught by monkey patching sys.exce..... More

Print this item

  How to discard list repeat values
Posted by: akanowhere - Dec-27-2020, 08:00 PM - Forum: General Coding Help - Replies (7)

Dears;

In the bellow list there repeats values in the last indice:

I need discard the the key and the value (all) if the value is repeated:
Exe..... More

Print this item

  Split Characters As Lines in File
Posted by: quest_ - Dec-27-2020, 07:16 PM - Forum: General Coding Help - Replies (3)

Hello,
I have this txt file. (The length is 15000)
1010100101010110000000000001111111111
And according to input, I want to separat..... More

Print this item

  How to read text in kivy textinput or Label
Posted by: jadel440 - Dec-27-2020, 02:48 PM - Forum: GUI - Replies (1)

[python]from kivy.app import App
from kivy.lang import Builder
from kivy.properties import StringProperty
from kivy.uix.textinput import TextInput..... More

Print this item

  strange behaviour- plotting
Posted by: nathan_Blanc_Haifa - Dec-27-2020, 01:37 PM - Forum: General Coding Help - No Replies

I am trying to plot to vectors against one another. when I don't touch the ticks, I get ticks with 16 digits that overlap. when I try to change the ti..... More

Print this item

  Improvements for first script?
Posted by: alloydog - Dec-27-2020, 01:32 PM - Forum: Code Review - Replies (9)

My way of learning is to think of something I need doing, then try a line, step by step, googling each error message and so on. I *don't* look for a ..... More

Print this item

  Python OOP
Posted by: Manolo029 - Dec-27-2020, 01:15 PM - Forum: General Coding Help - Replies (3)

I am working on a GUI app using Tkinter, with the following file/folder structure
PythonGUI
|-BIKEGUI
|--ADDSTOCK
|---add_stock.py
|--RENTBIKE
|..... More

Print this item

  Pandas default index remove
Posted by: nio74maz - Dec-27-2020, 09:26 AM - Forum: General Coding Help - Replies (2)

Hi everyone I'm trying to put a Put on woocommerce I extracted the product_id from a csv now I should pass it to the put method
documentation:
[url=..... More

Print this item

  creating an exe file for a python django project
Posted by: Sanjish - Dec-27-2020, 07:33 AM - Forum: Web Scraping & Web Development - No Replies

Hi,
I want to package my Python Django project as a standalone exe file or wheel file. Is it possible and if so how do i proceed ?

Thanks & reg..... More

Print this item

  Mido and virtual midi ports
Posted by: dore_m - Dec-27-2020, 02:00 AM - Forum: General Coding Help - Replies (2)

I'm new here, and hope someone might point me to the right direction, or show me some demo code I might review.

I'm trying to use MIDO to allow a p..... More

Print this item

Sad Convert python list to dictionary
Posted by: akanowhere - Dec-27-2020, 12:01 AM - Forum: General Coding Help - Replies (6)

I need a help to convert the bellow list to a dictionary:



[python] list = [{'Dia': 'qua', 'Promo': 'João', 'Loja': 6697}, {'Dia': 'qui', 'Promo..... More

Print this item

  TabError: inconsistent use of tabs and spaces in indentation
Posted by: hobbyist - Dec-26-2020, 09:15 PM - Forum: GUI - Replies (3)

Hello,

I am getting this error:

[error]
UbuntuUser@ubuntu:~/Desktop/PyQT$ python3 pycalc.py
File "pycalc.py", line 80
for btnText, pos ..... More

Print this item

  Pandas Extract data from two dataframe
Posted by: nio74maz - Dec-26-2020, 07:18 PM - Forum: General Coding Help - Replies (1)

Hi have help You, I need to extract data based on a column of a dataframe on another dataframe.in practice with df1.codbar I have to filter all the da..... More

Print this item

  PyQt5 QPushButton Problem
Posted by: Hellmut - Dec-26-2020, 07:11 PM - Forum: Homework - Replies (2)

Hello everybody!

I am working on my homework and I have a problem with QPushButtons. I need to make a field(8*8) of QPushButtons and then work with..... More

Print this item

  Two loops behaving differently
Posted by: DavidTheGrockle - Dec-26-2020, 03:24 PM - Forum: General Coding Help - Replies (5)

One of the options below prints "a = 1" as the first term and the other doesn't. WHY ?

for a in range(1, 4, 1): # This option prints a = 1 as firs..... More

Print this item

  Got error in Tic Tac Toe
Posted by: Sahil - Dec-26-2020, 01:51 PM - Forum: Game Development - Replies (1)

I somehow created Tic tac toe (not finished yet). when I place 'X' it place 'X' properly, and when I place 'O' it place 'O' but it also change 'X' to ..... More

Print this item

  category and subcategory into django project
Posted by: dhirendra007 - Dec-26-2020, 10:33 AM - Forum: Web Scraping & Web Development - No Replies

i am creating a blog application where an admin can put blogs into categories and subcategories, how do I add this functionality

Print this item

Big Grin Error installing Pygame-Zero
Posted by: dpa2007 - Dec-26-2020, 09:57 AM - Forum: Game Development - Replies (1)

Hello All
nice to find your community
I have an issue installing pygame-zero in python (pip install pgzero)
I get the following error and cannot re..... More

Print this item

  What kind of object is this?
Posted by: Moris526 - Dec-26-2020, 07:58 AM - Forum: General Coding Help - Replies (5)

HI.

Im trying to control a leds color sending data from pc to raspberrypi.
But instead of sending the RGB numbers I want to send a word like PURPL..... More

Print this item

  main libvlc error: stale plugins cache:
Posted by: schascheck - Dec-26-2020, 04:04 AM - Forum: General Coding Help - Replies (2)

Hello again,

I'm having some issues that show up when I run a script in Windows 10 shell, but not when I run it in the Idle shell. I get a little o..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579005
  Tutorial Requ... 510784
  Web Scraping ... 442018
  Newbie with P... 386056
  New Users Int... 377380
Most reputation
buran 581
snippsat 511
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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