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,271
» Latest member: aminrony1999
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

Online Users
There are currently 25 online users.
» 0 Member(s) | 23 Guest(s)
Bing, Google

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 3
» Views: 148
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 149
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 117
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 160
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 346
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 66
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 109
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 353
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 202
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 313

 
  pygame 2.0 - the happy dance birthday release
Posted by: snippsat - Oct-30-2020, 10:24 AM - Forum: News and Discussions - Replies (1)

pygame 2.0 - the happy dance birthday release
So look there been done a lot work on this Pygame ..... More

Print this item

  Understanding Raspberry PI RTS/CTS flow control
Posted by: zazas321 - Oct-30-2020, 08:02 AM - Forum: General Coding Help - No Replies

Hello. I am trying to get modbus working on my Raspberry PI but I cannot fully understand how to implement flow control. I have found and read these t..... More

Print this item

  Understanding Raspberry PI RTS/CTS flow control
Posted by: zazas321 - Oct-30-2020, 07:21 AM - Forum: General Coding Help - Replies (2)

Hello. I am trying to get modbus working on my Raspberry PI but I cannot fully understand how to implement flow control. I have found and read these t..... More

Print this item

  Delete lines from a string that contains a keyword
Posted by: JellyCreeper6 - Oct-30-2020, 05:39 AM - Forum: General Coding Help - Replies (4)

As stated in the title, I want to delete lines from a string that contains a certain keyword.
[python]This is the first line
This is the second line
T..... More

Print this item

  Problem printing last element from a list
Posted by: tester_V - Oct-30-2020, 02:58 AM - Forum: General Coding Help - Replies (3)

Hi, I'm having a problem printing the last element from a list.
I'm scanning a file for lines that have words 'find-1', 'find-2', 'find-3' and so on...... More

Print this item

  I'm getting a syntax error very early on in my code and I can't quite figure it out.
Posted by: liloliveoil - Oct-30-2020, 02:22 AM - Forum: Homework - Replies (1)

This is my freshman year in college and I had to take a python course. It hasn't been to easy with all reote classes. the goal of this program is for ..... More

Print this item

Smile send hexadecimal package variable UART
Posted by: santos20 - Oct-30-2020, 01:55 AM - Forum: General Coding Help - Replies (2)

Hello , guys
i am new using python i would like to send a package of hexadecimal values using the uart the problem it is two of the values are v..... More

Print this item

  On Win 10, no graphical window when run code
Posted by: ma2020uk - Oct-30-2020, 12:55 AM - Forum: GUI - Replies (10)

Hi
I am learning Python TKInter GUI.
I run following code on my Desktop running windows 10. The code runs but no root window appears.
If I run sam..... More

Print this item

  pygame blit() method
Posted by: syafiq14 - Oct-30-2020, 12:08 AM - Forum: Game Development - Replies (1)

why when I put the second argument of the blit() method with surf.get_rect() the image becomes in the upper left corner of the screen? When I change t..... More

Print this item

  detecting type of compression of a file
Posted by: Skaperen - Oct-29-2020, 11:31 PM - Forum: News and Discussions - Replies (1)

i would like a library function that can read the first 4096 bytes of a named file (no more than that, less if it can) and detect if it is a co..... More

Print this item

  AttributeError: '' object has no attribute 'tk'
Posted by: Maryan - Oct-29-2020, 10:27 PM - Forum: GUI - Replies (2)

I had to seperate this file from the main app, because had some errors that I had to fix them first. However, when I run the app I'm getting Attribute..... More

Print this item

  complicated dict comprehension
Posted by: rootVIII - Oct-29-2020, 07:02 PM - Forum: General Coding Help - Replies (4)

[python]


# Initial dictionary
d = {
'one': 'some val',
'two': 'some val',
'three': {
'subkey_1': 'some val',
's..... More

Print this item

  ntlk error shown
Posted by: ErnestTBass - Oct-29-2020, 06:39 PM - Forum: General Coding Help - Replies (2)

In the following code snippet:

[code]
# Instantiate the sentiment intensity analyzer
vader = SentimentIntensityAnalyzer()

# Set column names
..... More

Print this item

  Example of guizero ListBox
Posted by: jreebel - Oct-29-2020, 06:18 PM - Forum: GUI - Replies (1)

I just started using guizero in a game I am developing using pygame. It took some experimentation to get the ListBox to do what I wanted (it's in a d..... More

Print this item

  Clone with pywebcopy with proxy
Posted by: MeMyselfAndI - Oct-29-2020, 04:55 PM - Forum: General Coding Help - Replies (1)

Im struggling with pywebcopy and proxies. Its no problem to scrape a Onion site with BeautifulSoup(not the below code).

But im trying to use pywebc..... More

Print this item

  TypeError: only size-1 arrays can be converted to Python scalars
Posted by: RainbowTrish1 - Oct-29-2020, 04:01 PM - Forum: Homework - Replies (1)

Hi everyone,

Hope ye are all well.

I am extremely new to Python and have an assignment due tomorrow which I really struggled with, but happy at ..... More

Print this item

  Check internet speed
Posted by: ebolisa - Oct-29-2020, 03:16 PM - Forum: General Coding Help - Replies (1)

Hi,

I've a pissed poor WiFi internet connection. To prove it to my ISP, I'd like to log a constant connection speed (maybe every 30 seconds).

I..... More

Print this item

  Struggling for the past hour to define function and call it back
Posted by: godlyredwall - Oct-29-2020, 01:04 PM - Forum: General Coding Help - Replies (2)

Ok, so for the past hour i've been struggling to define a function and call it back, i dont know what im doing wrong i've done exactly how it says on ..... More

Print this item

  Extract data from PDF page to Excel
Posted by: nathan_nz - Oct-29-2020, 12:15 PM - Forum: General Coding Help - Replies (1)

Hi everyone, I am very new to coding and am wanting to create some code in python to extract data from a PDF file and transfer it into an excel sheet...... More

Print this item

  Continous Speech Recognition
Posted by: dell91 - Oct-29-2020, 10:51 AM - Forum: General Coding Help - No Replies

Hi all,

I am new to this forum and also a bit new to Python to be honest.

I decided to create a project with Python where a microphone listens t..... More

Print this item

Photo Raspberry PI writing to RS485 driver, DIR pin not holding state
Posted by: zazas321 - Oct-29-2020, 10:32 AM - Forum: General Coding Help - Replies (2)

Hello. I am writing data to my modbus DRIVER and learning about modbus in general. I am using logic analyzer to check my signals.

I have noticed a ..... More

Print this item

  sklearn.neural_network MLPClassifier forecast variances
Posted by: CK1960 - Oct-29-2020, 09:57 AM - Forum: Data Science - Replies (1)

Issue described below

Print this item

  Entry problem
Posted by: DPaul - Oct-29-2020, 09:24 AM - Forum: GUI - Replies (5)

Hi,

I have an app with a simple Tkinter GUI. It has an Entry box, where the user can type something or not.
[python]
entryText1 = Entry(root, width =..... More

Print this item

  POKE & PEEK...
Posted by: ATARI_LIVE - Oct-29-2020, 08:26 AM - Forum: General Coding Help - Replies (3)

In the basic language use POKE and PEEK. what do in python?

Print this item

  Made new instance - button still goes to old instance
Posted by: nanok66 - Oct-29-2020, 07:06 AM - Forum: GUI - Replies (6)

Hi,
I have a large python GUI program and I wanted to add a button that "resets all settings to default"

I have 3 pages of my program that I need ..... More

Print this item

  Can property getters and setters have additional arguments?
Posted by: pjfarley3 - Oct-29-2020, 06:31 AM - Forum: General Coding Help - Replies (2)

I am trying to implement getters and setters in a class using a numpy array as the base instance value, but I am not able to pass an array index argum..... More

Print this item

  Why does my function return None?
Posted by: vg100h - Oct-29-2020, 05:56 AM - Forum: General Coding Help - Replies (3)

Hello Team,

I am trying to build a dictionary that:

- would take in a word
- check if it exists in the dictionary (my_file_data var) with the t..... More

Print this item

  Running code online
Posted by: aqua_ed - Oct-29-2020, 02:27 AM - Forum: General Coding Help - Replies (1)

I teach a python class at school. Right now, my students are creating their own text-based adventure games and putting together some really cool and ..... More

Print this item

  Delete all variables except few
Posted by: Robotguy - Oct-28-2020, 10:47 PM - Forum: General Coding Help - Replies (1)

Hello,

I know how to use del var1, var2,... to delete multiple variables. However, this is not handy when I have to delete several variables. Is ..... More

Print this item

  In this dictionary all the values end up the same. How?
Posted by: Pedroski55 - Oct-28-2020, 10:46 PM - Forum: General Coding Help - Replies (2)

What I'm doing is making a big excel with all the students homework answers in each row. The first 2 columns are name and student number.

My goal i..... More

Print this item

  Web scraping errors
Posted by: julan2020 - Oct-28-2020, 10:10 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi!
Can someone please help a newbie here.
Im trying to download all the images from xkcd.com, using the code from the book Automate the boring stu..... More

Print this item

  Time conversion error
Posted by: tester_V - Oct-28-2020, 09:59 PM - Forum: General Coding Help - Replies (1)

Hi, I'm trying to convert "time" string and a code I wrote works fine until I add a print statement.
It produces error " print(datetime.timedelta(..... More

Print this item

  Reading from Excel: value not formula!
Posted by: faryad13 - Oct-28-2020, 09:52 PM - Forum: General Coding Help - No Replies

Hi everybody

I am trying to read some data from an excel file in python. Here is a part of my code:
[python]
def main():


xl_element = utils...... More

Print this item

  Positive and negative numbers in a row
Posted by: peterp - Oct-28-2020, 09:42 PM - Forum: Homework - Replies (1)

Hi, I suppose it`s an easy one. I know how to list numbers but struggele how to write a simple function, which will show on the screen alternating pos..... More

Print this item

  HW on BarGraph Class
Posted by: Grey_space - Oct-28-2020, 07:24 PM - Forum: Homework - Replies (1)

Hi, I am currently working on a program that defines a class called DrawBar which basically turns a list into a bar graph. In it, I should have a meth..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 1 hour ago Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 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...
Most views
  The best Prog... 579082
  Tutorial Requ... 511198
  Web Scraping ... 442063
  Newbie with P... 386122
  New Users Int... 378378
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 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday
ViktoriaMetodieva Yesterday

User Panel Messages

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