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,940
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,516

Full Statistics

Online Users
There are currently 76 online users.
» 0 Member(s) | 65 Guest(s)
Applebot, Bing, AOL, AOL, Google, Mojeek, Facebook

Latest Threads
A coding beginner needs h...
Forum: General Coding Help
Last Post: paul18fr
8 hours ago
» Replies: 1
» Views: 241
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Today, 04:48 AM
» Replies: 8
» Views: 386
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,587
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 960
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,308
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,850
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,631
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,731
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,916
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,466

 
  GUI skips code part
Posted by: MLGpotato - Feb-24-2021, 06:39 PM - Forum: GUI - Replies (7)

Hello!
Can anyone help me? I dont know why but it just litearly skips gamemain(). :/ Wall Currently there are no errors in the code.
[python]
f..... More

Print this item

Question Text color (ascii) in a dictionary
Posted by: banidjamali - Feb-24-2021, 05:44 PM - Forum: General Coding Help - Replies (1)

Hello everyone.

In this code:
[python]
spots = {1: '1', 2: '2', 3: '3'}
spots[1] = '\033[93mONE\033[0m'

print(spots[1])
print(spots)
[/pyth..... More

Print this item

  int() argument Error.... but it's not :)
Posted by: LeoT - Feb-24-2021, 05:39 PM - Forum: General Coding Help - Replies (2)

Hi there,
my code is totally fine but only during day time :)
I basically do a GET request to a solar inverter that responds (during day time!) with..... More

Print this item

  Continue command in python tkinter?
Posted by: MLGpotato - Feb-24-2021, 04:37 PM - Forum: GUI - Replies (7)

Hello! Is there anyway to set a continue command to button without making another def?
[python]enter = Button(root, text = "Name your self" command =..... More

Print this item

  Upgraded Django, `AdminSplitDateTime` causes exception on `list` object
Posted by: 1780yz - Feb-24-2021, 03:56 PM - Forum: Web Scraping & Web Development - Replies (2)

I'm upgrading a project from Python2.7 + Django1.8 to Python3.7 + Django3.1. The application contains a form using w..... More

Print this item

  How to programmatically exit without Traceback?
Posted by: Mark17 - Feb-24-2021, 03:47 PM - Forum: General Coding Help - Replies (7)

This code ends by printing 4:

import sys

for i in range(10):
    if i == 5:
          sys.exit(0)
    print(i)
When I e..... More

Print this item

  re: delete string onwards
Posted by: JohnnyCoffee - Feb-24-2021, 03:12 PM - Forum: News and Discussions - Replies (3)

I get a dynamic data string that I capture from the HTTP header, assigning a variable according to the example below:

[python]
lang = 'pt-br,pt;q=..... More

Print this item

  Getting a GET request output text into a variable to work with it.
Posted by: LeoT - Feb-24-2021, 01:38 PM - Forum: General Coding Help - Replies (2)

Hi there,
I'm an total beginner in python and currently experimenting with the request library.
I basically want to do a GET request to my local sol..... More

Print this item

  Why getting ValueError : Math domain error in trig. function, math.asin() ?
Posted by: jahuja73 - Feb-24-2021, 11:56 AM - Forum: General Coding Help - Replies (3)

Unable to see why error in output.
Tried on repl.it, as well as ideone.com; and get the same error.

[python]
#your code goes here
import math

# num..... More

Print this item

Photo Unable to Extract a web element
Posted by: law - Feb-24-2021, 11:14 AM - Forum: Web Scraping & Web Development - Replies (6)

Hello,
I have this Selenium web scrapping project I've been working on for while, everything have been awesome till recently the website got updated ..... More

Print this item

Question exiting the outer function from the inner function
Posted by: banidjamali - Feb-24-2021, 07:16 AM - Forum: General Coding Help - Replies (3)

Hello everyone.

In the code below I have simplified a result I'm trying to achieve.
I want to know how I can exit the outer function when the inne..... More

Print this item

Question Dataframe Manipulation Coping Rows and Removing Dates
Posted by: ashleysnl - Feb-24-2021, 02:18 AM - Forum: General Coding Help - Replies (1)

Hello,

I have a data frame that contains two dates in a single column. I would like to copy the column and split the dates. how can I achieve this..... More

Print this item

  parsin python code
Posted by: Skaperen - Feb-24-2021, 02:18 AM - Forum: News and Discussions - Replies (5)

is there a function to parse or lex python code? in particular i want to extract the name from a source line that is a def or class statement. i don..... More

Print this item

  AttributeError class object has no attribute list object
Posted by: scttfnch - Feb-24-2021, 01:00 AM - Forum: General Coding Help - Replies (5)

Hi,

I am calling an API to retrieve different types of information in multiple calls. I use an authorization process to gain access to the API and ..... More

Print this item

  Statements and Expressions
Posted by: Julie - Feb-23-2021, 11:46 PM - Forum: General Coding Help - Replies (1)

Understanding Statements and Expressions
After a ton of research, reading and asking around here is my understanding of statements and express..... More

Print this item

  exporting all lines
Posted by: YazeedbnMohmmed - Feb-23-2021, 11:35 PM - Forum: General Coding Help - Replies (2)

Hello Dear

Before few days ago I was code password generator and I had problem that the output text file only write last line my code was like thi..... More

Print this item

  Move a key:value in a dictionary
Posted by: dgrunwal - Feb-23-2021, 09:17 PM - Forum: General Coding Help - Replies (4)

I created the following dictionary and added another key:value.

[python]>>> super_hero_names = {
... 'Superman' : 'Clark Kent',
... 'Spid..... More

Print this item

  python selenium downloading embedded pdf
Posted by: damian0612 - Feb-23-2021, 08:44 PM - Forum: Web Scraping & Web Development - No Replies

I've navigated to a page to download a pdf that is a report showing information I've asked for. However, I can't seem to download it because of the wa..... More

Print this item

  Running a few lines of code as soon as my timer ends
Posted by: nethatar - Feb-23-2021, 08:44 PM - Forum: General Coding Help - Replies (3)

Basically near the end of my script I added a timer that will count down the exact time until it hits 0. Lets say I make it wait 100 seconds, it will ..... More

Print this item

  IMAP authentication
Posted by: matt_the_hall - Feb-23-2021, 08:38 PM - Forum: Networking - No Replies

Hi folks,

I am trying to write a console based IMAP email client and am feeling a little confused about the connection/authentication part.

Som..... More

Print this item

  keeping the last 4 records in a list
Posted by: Skaperen - Feb-23-2021, 08:17 PM - Forum: News and Discussions - Replies (2)

i'm reading in lines from a file by looping over the open file object so i have 1 line at a time. i need to do tests that check the last 4 lines. i ..... More

Print this item

Sad :/
Posted by: Oshadha - Feb-23-2021, 04:45 PM - Forum: General Coding Help - Replies (1)

Script;
[python]
import mysql.connector

mydb = mysql.connector.connect(
host = "localhost",
user = "root",
passwd = "password",
..... More

Print this item

  How to create a speed limiter for a car
Posted by: Tyrel - Feb-23-2021, 04:26 PM - Forum: General Coding Help - Replies (3)

Can someone please help me.

I want to create a device that you plug into your car that limits the speed of the car according to the speed limit of ..... More

Print this item

  Reindex columns
Posted by: rr1997 - Feb-23-2021, 03:09 PM - Forum: General Coding Help - Replies (10)

Hi,

How can I reindex columns? I get an error that says "ValueError: Length mismatch: Expected axis has 18 elements, new values have 5 elements"
..... More

Print this item

  tkinter destroy label inside labelFrame
Posted by: Nick_tkinter - Feb-23-2021, 02:32 PM - Forum: GUI - Replies (3)

hello.I have 3 functions inside a file:

[python]import webbrowser
from tkinter import *
from datetime import datetime
def open_google_maps(root ..... More

Print this item

  object has no attribute 'add_internal'
Posted by: djwilson0495 - Feb-23-2021, 02:11 PM - Forum: Game Development - Replies (7)

I'm trying to produce a grid of stars in a pygame window but when I run the code:

[python]
import sys

import pygame # contains functionality ..... More

Print this item

  Help with beginner assignment
Posted by: Sigwulfr - Feb-23-2021, 02:03 PM - Forum: Homework - Replies (4)

Hi all, and in advance thanks for helping out the Python rookie :)

For my Programming Class I have to create a program that can search for a substr..... More

Print this item

  Circular import dependency
Posted by: hobbyist - Feb-23-2021, 09:45 AM - Forum: General Coding Help - Replies (9)

Hello, I got this message when trying to run my code:
[error]ImportError: cannot import name 'convert_kernel' from partially initialized module 'keras..... More

Print this item

  How to understand the byte notation in python3
Posted by: blackknite - Feb-23-2021, 07:00 AM - Forum: General Coding Help - Replies (3)

Hey, I am trying to learn low-level stuff in py3 for some crypto project, and it is pretty hard so far.

[python]In [63]: int(b'\x12AY5'.hex(),16)
..... More

Print this item

  how to get process handler?
Posted by: maiya - Feb-23-2021, 06:40 AM - Forum: General Coding Help - Replies (1)

Hi All,

I have few questions
1. how to get the process handler?
2. how to keep the process open throughout the entire execution of the script
3...... More

Print this item

  pyautogui attribuyes not found
Posted by: rfresh737 - Feb-22-2021, 10:32 PM - Forum: GUI - Replies (7)

I'm fairly new to python programming. I installed pyautogui.

I was just starting a basic tutorial on using it with these two lines:

[python]
import ..... More

Print this item

  Efficient method to find phrase in string
Posted by: Tuxedo - Feb-22-2021, 10:13 PM - Forum: Data Science - Replies (6)

I'm creating an application to automatically categorize personal financial transactions based on the description (I know some institutions do that alr..... More

Print this item

  Call for participants in creating an App for Wikidata
Posted by: priskorn - Feb-22-2021, 10:04 PM - Forum: Bar - Replies (1)

I have started a project to make it easy to edit Wikidata from mobile devices. Feel free to join, we have a python GNU/Linux GTK app in beta which we ..... More

Print this item

  Please help to make the code smaller
Posted by: dexomol - Feb-22-2021, 08:08 PM - Forum: Code Review - Replies (2)

Hi,
can some one show me a way to write this code in a shorter way? :)
Can't find a way to make the labels configure more compact with iteration.
..... More

Print this item

  Subprocesses not opening File Select Dialog
Posted by: teut - Feb-22-2021, 05:55 PM - Forum: General Coding Help - Replies (2)

Hello ,
I am trying to run a command which should open up a File Select Windows widget in Kivy. Kivy has the non-native FileChooser class which is n..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A coding beginner needs h... 8 hours ago Littlefish paul18fr General Codin...
  Using a For Loop to subtr... Today, 04:48 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  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...
Most views
  The best Prog... 576599
  Tutorial Requ... 498618
  Web Scraping ... 440455
  Newbie with P... 384367
  New Users Int... 367618
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+ 12087
buran 8175
snippsat 7368
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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