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,419
» Latest member: starboy25
» Forum threads: 38,829
» Forum posts: 176,072

Full Statistics

Online Users
There are currently 26 online users.
» 1 Member(s) | 22 Guest(s)
Bing, Google, AOL, DeaD_EyE

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: DeaD_EyE
2 minutes ago
» Replies: 2
» Views: 22
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 433
python re.finditer return...
Forum: General Coding Help
Last Post: snippsat
Jan-09-2026, 06:28 PM
» Replies: 7
» Views: 460
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 787
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,733
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 707
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,016
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,607
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Jan-02-2026, 12:38 PM
» Replies: 2
» Views: 722
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,358

 
  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

  Python Books - Recommendation
Posted by: lasek723 - Oct-28-2020, 07:12 PM - Forum: News and Discussions - Replies (5)

Hi all,

I am 6 weeks into my Python journey. I like it. I have been using DataCamp.

Whilst I wait until they have a black Friday offer on, I am loo..... More

Print this item

  How do i make a new lists out of an list
Posted by: ozezn1 - Oct-28-2020, 06:39 PM - Forum: General Coding Help - Replies (1)

I'm trying to make my first app and was wondering how do I make a list out of a list. Following some tutorials on udemy .

[python]list_body = ["hea..... More

Print this item

  Qestions using futurize and QtCore.Signal
Posted by: smaraux - Oct-28-2020, 06:27 PM - Forum: General Coding Help - Replies (3)

Hello,

We are porting (at last) our codebase on python 3 but need retrocomp with python 2, thus we are using "future".

I have some questions abo..... More

Print this item

  python mongo
Posted by: beginner2020 - Oct-28-2020, 06:25 PM - Forum: General Coding Help - Replies (2)

Hi

Iam a beginner in python coding. I have a requirement to get the count from one column which is of Object type from mongodb. Below is the code..... More

Print this item

  tkinter: Image to Label
Posted by: Maryan - Oct-28-2020, 06:05 PM - Forum: GUI - Replies (10)

I have some problem with my function. I want to open image(filedialog) and display the image into label.

[python]def openImg():
fileimg = file..... More

Print this item

  How do I add a number to every item in a list?
Posted by: john316 - Oct-28-2020, 05:17 PM - Forum: General Coding Help - Replies (2)

Hey Guys,

I;m wondering how could I add a number to every single item in a list.

So for example. test1, test2 test3, test4

If i would have a range ..... More

Print this item

  python
Posted by: mluong2 - Oct-28-2020, 05:10 PM - Forum: General Coding Help - Replies (3)

I'm new to python and stuck on the concept of command-line arguments.
The variable filename and input filename must both refer to files that exist an..... More

Print this item

  no image displayed with folium and pandas
Posted by: Declaix - Oct-28-2020, 03:09 PM - Forum: Data Science - Replies (1)

Hi,
I am trying to use folium and pandas and I ran the following script under ubuntu 18 with python3 under geany :

[python]#! python3
# coding: u..... More

Print this item

  Check network WITHOUT use internet
Posted by: ATARI_LIVE - Oct-28-2020, 02:30 PM - Forum: Networking - Replies (1)

I know one of code is works great as:
[python]try:
import httplib
except:
import http.client as httplib

def checkInternetHttplib(url="w..... More

Print this item

Question csv Dictwriter problems
Posted by: fsuedr2022 - Oct-28-2020, 02:09 PM - Forum: General Coding Help - Replies (4)

I have many lines of data like:


[{'begins_at': '2020-10-22T14:00:00Z',
'open_price': '5.125000',
'close_price': '5.130000',
'high_price': ..... More

Print this item

  Trying to integrate gcd function
Posted by: hhydration - Oct-28-2020, 12:37 PM - Forum: Homework - Replies (3)

I have this function, it prints a list of values.[python]def kasinski(text):
trigraphs=[]
distances=[]
for trigraph in range (len(text)-2)..... More

Print this item

  change dataframe header with 2 rows
Posted by: tonycat - Oct-28-2020, 10:22 AM - Forum: Data Science - Replies (2)

Hello, I am new to programming, have some questions , thanks ! Big Grin

I download stock quote from yahoo and return two dataframes, by 2 metho..... More

Print this item

  PyQt5: How to use connectSlotsByName ?
Posted by: arbiel - Oct-28-2020, 10:12 AM - Forum: GUI - No Replies

Hi

I'm looking for designing a way to display various layouts in a window using PyQt5. To do that, I try to define these layouts and the correspond..... More

Print this item

  Why is the function returning None for a * b instead of number?
Posted by: omm - Oct-28-2020, 05:31 AM - Forum: General Coding Help - Replies (10)

Problem: Write calculations using functions and get the results. Let's have a look at some examples:
seven(times(five())) # must return 35


This ..... More

Print this item

  Can Python Do This? Asset Management
Posted by: mbaker_wv - Oct-28-2020, 02:06 AM - Forum: General Coding Help - Replies (4)

Hi,
I'm not a python pro but rather a novice at best. I'm looking to maybe build a small little project on the side to better help with my IT asset ma..... More

Print this item

Exclamation Integrating py script onto GUI.
Posted by: edwin4project - Oct-28-2020, 01:41 AM - Forum: GUI - No Replies

I am a student who is new to Python. For my project, I am tasked to integrate a python program onto my GUI interface at the top left corner of it.

Ba..... More

Print this item

  Why does this function print empty list?
Posted by: hhydration - Oct-28-2020, 01:15 AM - Forum: Homework - Replies (1)

[python]def kasinski(text):
trigraphs=[]
distances=[]
for trigraph in range (len(text)-2):
newtrigraph= text[trigraph:trigraph..... More

Print this item

  Printing empty list?
Posted by: hhydration - Oct-28-2020, 12:56 AM - Forum: General Coding Help - Replies (2)

[python]def kasinski(text):
trigraphs=[]
distances=[]
for trigraph in range (len(text)-2):
newtrigraph= text[trigraph:trigraph..... More

Print this item

  class homework
Posted by: mohan10216 - Oct-28-2020, 12:40 AM - Forum: Homework - Replies (2)

Hi I wanted to get some help on how I could solve this python problem as I am just a beginner in python.
[color=#E74C3C]allow the user to enter their..... More

Print this item

  for loop question
Posted by: KEYS - Oct-27-2020, 11:16 PM - Forum: General Coding Help - Replies (1)

Hello,
I am trying to find the correct syntax to use in a for loop using an expression as a test condition.
The pseudo code i am trying to convert ..... More

Print this item

  QPushButton and and QmenuBar issues
Posted by: zettai - Oct-27-2020, 09:40 PM - Forum: GUI - Replies (5)

[python]import json
import math
import os
import PyQt5
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from ..... More

Print this item

  Converting a remainder to int to str
Posted by: tester_V - Oct-27-2020, 07:13 PM - Forum: General Coding Help - Replies (6)

Hi,
I'm converting seconds to HH:MM:SS and having a hard time converting a remainder (seconds) to an integer to a string Confused .
I found this..... More

Print this item

  Call object with string
Posted by: PEGylated_User - Oct-27-2020, 05:44 PM - Forum: GUI - Replies (4)

I am having issues finding the syntax for calling objects by name using a string. My current code finds all the checkboxes that have been selected an..... More

Print this item

  download file from url
Posted by: fernandosianet - Oct-27-2020, 05:42 PM - Forum: General Coding Help - Replies (3)

Hi folks

I know how to download with the direct link, but we always have updates.

[python]

import requests

print ('Download')

url = 'ht..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 2 minutes ago Pedroski55 DeaD_EyE General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  python re.finditer return... 01-09, 18:28 arbiel snippsat General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  a function to watch files 01-02, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
Most views
  The best Prog... 580721
  Tutorial Requ... 522051
  Web Scraping ... 442901
  New Users Int... 387927
  Newbie with P... 387124
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+ 12117
buran 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
starboy25 Today
zabenjamitop8877 Yesterday
zanaaliepetrovz6060 Yesterday
F_S 01-09
cruisesfares 01-09

User Panel Messages

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