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,953
» Latest member: bianchiluca116
» Forum threads: 38,726
» Forum posts: 175,522

Full Statistics

Online Users
There are currently 42 online users.
» 1 Member(s) | 34 Guest(s)
Bing, Google, AOL, Mojeek, AOL, Apple, Pedroski55

Latest Threads
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
1 minute ago
» Replies: 1
» Views: 45
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
8 hours ago
» Replies: 10
» Views: 29,263
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 4
» Views: 9,359
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 227
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 667
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 255
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 843
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,105
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,335
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,703

 
  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
  [Tkinter] how to export a... 1 minute ago RonR Pedroski55 GUI
  pip install requests does... 8 hours ago misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 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
Most views
  The best Prog... 576818
  Tutorial Requ... 499235
  Web Scraping ... 440605
  Newbie with P... 384581
  New Users Int... 368471
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+ 12088
buran 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bianchiluca116 Today
Jorgecog Today
adamsmith12 Today
Ronny Today
Luciana Today

User Panel Messages

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