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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 48 online users.
» 0 Member(s) | 40 Guest(s)
Bing, Facebook Dev, Google, Applebot

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

 
Question How to make split button?
Posted by: teknixstuff - Jan-03-2023, 02:33 PM - Forum: GUI - Replies (2)

How can I make a split button with Tkinter?
Here's an example of what that looks like:
[img]https://eithermouse.com/ahk/Screenshots/SplitButton.png[..... More

Print this item

  pygame can't be installed
Posted by: Lethalid - Jan-03-2023, 01:37 PM - Forum: General Coding Help - Replies (4)

Hello
after typing "pip install pygame" in cmd I have:

:\Windows\system32>pip install pygame
Collecting pygame
Using cached pygame-2.1.2.tar.g..... More

Print this item

  Sine fitting - extra modulation
Posted by: Pikano - Jan-03-2023, 01:33 PM - Forum: Data Science - Replies (2)

Hi,
I have some issues with sine fitting, I use a very simple sine equation

y = a + b*np.sin(N_p*theta+c)
but the result gives me ..... More


Attached Files

Thumbnail(s)
   
Print this item

  how to make label or button not visible with the place method?
Posted by: nowayj63 - Jan-03-2023, 03:05 AM - Forum: GUI - Replies (2)

how can I make this label visible or not visible using the place method?
I will have to make it visible later in he program but hidden at the start...... More

Print this item

  TKinter JSON Key Error
Posted by: Nu2Python - Jan-02-2023, 06:09 AM - Forum: GUI - Replies (4)

Hi All, I am hoping someone can tell me why this error is happening with my line:
[python]x = json.loads(sonoff01.text)
status = x['relays'][/pytho..... More

Print this item

  Random Generator: From Word to Numbers, from Numbers to n possibles Words
Posted by: Yamiyozx - Jan-01-2023, 09:18 PM - Forum: Homework - Replies (2)

Hello everyone, I'm a complete noob, but I would like to ask help to make a little projet.

The Ideia is very simple:

1.I input a seed, that can ..... More

Print this item

  Couldn't install a go-game called dlgo
Posted by: Nomamesse - Jan-01-2023, 07:19 PM - Forum: General Coding Help - Replies (14)

Hi everyone,

I'm trying to install a go game package called dlgo but I can't. Here's it all :
[python]C:\Users\Nomamesse>pip install dlgo
Collect..... More

Print this item

  reshaping 2D numpy array
Posted by: paul18fr - Jan-01-2023, 06:31 PM - Forum: Data Science - Replies (3)

Hi

Does somebody have a more efficient way to reshape the following M matrix?

The only way i've found so far is to extract 2 intermediate matri..... More

Print this item

Exclamation Setting icon on QAction from outside QGuiApplication
Posted by: gradlon93 - Jan-01-2023, 05:55 PM - Forum: GUI - Replies (3)

Good evening, and a happy new year you all.

I'm working on a GUI that is expected to become larger and larger in the future, so I am aiming to mak..... More

Print this item

  how to read txt file, and write into excel with multiply sheet
Posted by: jacklee26 - Jan-01-2023, 03:41 AM - Forum: General Coding Help - Replies (14)

Hi I have faced one problem I wish to read a text file, and when reaching ===== ending, I wish to write into a new separate sheet.
So for example, I..... More

Print this item

  Issues with "connection timed out"
Posted by: duckredbeard - Dec-31-2022, 10:46 PM - Forum: General Coding Help - No Replies

I have a Raspberry Pi running a python code that is expected to do a requests.post when a PIR detects motion. It works for several days in a row, the..... More

Print this item

  Tkinter Pillow Resize Image Looks Choppy While Resizing
Posted by: AaronCatolico1 - Dec-31-2022, 10:45 PM - Forum: General Coding Help - Replies (2)

I have a frame that stores a label which stores a background image. When I resize the form and the frame resizes, the background image of the label lo..... More

Print this item

  Using multi-core and muliple processors
Posted by: Robots - Dec-31-2022, 10:42 PM - Forum: Data Science - Replies (1)

In my computers I am running multi-core or multipule CPUs, how can I get Python to use a specific CPU, core or set of either?

Print this item

  Zooming on mouse position calculation
Posted by: GJG - Dec-31-2022, 02:55 PM - Forum: Game Development - Replies (1)

HI :) ! I have been trying to create a simple zoom on point navigation with pygame, and after endless googling sessions, this is as close as I could g..... More

Print this item

  Download video having DRM protection
Posted by: Pavel_47 - Dec-31-2022, 11:26 AM - Forum: Web Scraping & Web Development - No Replies

Hello,
I wonder if there is any method to bypass DRM protection while downloading a video.
Any suggestions ?
Thanks.

Print this item

  How to print variables in function?
Posted by: samuelbachorik - Dec-31-2022, 10:27 AM - Forum: General Coding Help - Replies (3)

Hi, lets think function

def help():
    a = 0
    b = 1
    c = linear(x)
How to now get these variables of this functions int..... More

Print this item

  Sorting data by specific variables using argparse
Posted by: Bearinabox - Dec-31-2022, 12:14 AM - Forum: Data Science - Replies (5)

I have a data set with several columns. One column is consists of different years. I'm trying to create a program so that a user can input a year and ..... More

Print this item

  Matplotlib FuncAnimation
Posted by: NewPi - Dec-30-2022, 09:45 PM - Forum: General Coding Help - Replies (3)

Hi,

I have a question about FuncAnimation of Matplotlib. Here is my code:

[python]import numpy as np
import matplotlib.pyplot as plt
import ma..... More

Print this item

  Create Excel Line Chart Programmatically
Posted by: dee - Dec-30-2022, 07:07 PM - Forum: General Coding Help - Replies (3)

Hello,
Do you have a good link or code how to create Excel line chart from Python with dataframe or from Excel data? I google for a while but unfortu..... More

Print this item

  pdf to mp3
Posted by: yawstick - Dec-30-2022, 03:19 PM - Forum: General Coding Help - Replies (4)

I'm mostly a micro python guy on ESP32 devices but recently ran across a lot of python programming videos on youtube. One caught my eye and have been ..... More


Attached Files

.pdf   test_pdf.pdf (Size: 8.48 KB / Downloads: 261)
Print this item

  Reading a file
Posted by: JonWayn - Dec-30-2022, 08:35 AM - Forum: General Coding Help - Replies (3)

I have got a simple file read code and I need to understand why it works the way it does.

[python]
def ReadFileContents(file_path):
try:
..... More

Print this item

  Add data to CSV file via Python
Posted by: Anaconda23 - Dec-30-2022, 02:31 AM - Forum: Data Science - No Replies

Hi there, I'm quite new in this field and I was wondering about the following issues:

I have a dataset to work with for a Machine Learning project...... More

Print this item

  How do I add comments from a text-file to an array of folders?
Posted by: clausneergaard - Dec-29-2022, 10:41 PM - Forum: General Coding Help - Replies (2)

Hello everyone -

I was just wondering, as I’ve ventured out on bit of a limp here, if anyone have any experience with automating the process of cre..... More

Print this item

  'networkx' Questions
Posted by: Trader - Dec-29-2022, 10:20 PM - Forum: General Coding Help - No Replies

How can I draw a network with a degree center 2 using Networkx?

How can I find the centralities of betweenness, proximity, self-worth for each node..... More

Print this item

  Error "list indices must be integers or slices, not str"
Posted by: dee - Dec-29-2022, 09:38 PM - Forum: General Coding Help - Replies (2)

I want to format Excel column to percent. The following code gave me "list indices must be integers or slices, not str" error. The __class__ of Column..... More


Attached Files

Thumbnail(s)
   
Print this item

  color code doesn't work
Posted by: harryvl - Dec-29-2022, 08:48 PM - Forum: General Coding Help - Replies (1)

I made a script in for printing colored numbers.
The output works fine in spyder.
We i run the script from my anaconda prompt it doesn't work.
Then..... More

Print this item

  Illegal instruction (core dumped) when import pandas.
Posted by: amandacstr - Dec-29-2022, 08:04 PM - Forum: General Coding Help - Replies (1)

Hello!
I have Python 3.10.6 installed in my system (Lubuntu 22.04). I installed pandas and pyarrow with "pip3 install" command but when I try to impo..... More

Print this item

Exclamation pong paddles wont move
Posted by: skullkat232 - Dec-29-2022, 07:42 PM - Forum: Game Development - Replies (5)

help pls! i am having trouble with the pong paddles and there are no visible errors in my code, pLeASe hELPA mE :((((

Here's my code:

[python]..... More

Print this item

  Loop to find the best combination/score
Posted by: KoinKoin - Dec-29-2022, 05:45 PM - Forum: Homework - Replies (21)

Hello everyone,

I need your help because I can't a good solution of my problem
I have a dataframe, with name of some NBA players, average number a..... More


Attached Files

Thumbnail(s)
   
Print this item

  Using CPUs and Cores
Posted by: Robots - Dec-29-2022, 05:17 PM - Forum: News and Discussions - No Replies

In my computers I am running multi-core or multipule CPUs, how can I get Python to use a specific CPU, core or set of either?

Print this item

  trying to stream data from a websocket to client
Posted by: tomtom - Dec-29-2022, 04:29 PM - Forum: Networking - Replies (2)

My mission is to create a websocket server that send signal to any client connected to the websocket, the signal should be sent only when they is a sp..... More

Print this item

  Convert Python code to MATLAB code
Posted by: bitoded - Dec-29-2022, 01:53 PM - Forum: News and Discussions - Replies (4)

How can I convert Python code to MATLAB code?

Print this item

  Module Not Found Error
Posted by: bitoded - Dec-29-2022, 01:48 PM - Forum: General Coding Help - Replies (4)

I tried to fix the error below but doesn't work.

Error:
ModuleNotFoundError: No module named 'numpy'
Share me your idea to fix the probl..... More

Print this item

  user input values into list of lists
Posted by: tauros73 - Dec-29-2022, 11:13 AM - Forum: General Coding Help - Replies (3)

I have the following code :

[python]import itertools
from functools import reduce
CountOfCombination= 0
for i in itertools.product((1,2),(1,2,0..... More

Print this item

  PDF readers
Posted by: DPaul - Dec-29-2022, 06:50 AM - Forum: Bar - Replies (10)

Hi,
In the realm of genealogy, people have often turned their life's work into a pdf.
It usually can be read using pdfplumber and sometimes pdfminer.
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 4 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 6 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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... 578672
  Tutorial Requ... 509060
  Web Scraping ... 441834
  Newbie with P... 385782
  New Users Int... 375018
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
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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