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,303
» Latest member: TimTom420
» Forum threads: 38,797
» Forum posts: 175,898

Full Statistics

Online Users
There are currently 37 online users.
» 0 Member(s) | 29 Guest(s)
Bing, Google, Facebook, AOL, Google Image

Latest Threads
Python is not working on ...
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 2
» Views: 73
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Yesterday, 04:48 AM
» Replies: 6
» Views: 7,799
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
Yesterday, 02:09 AM
» Replies: 7
» Views: 628
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 123
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 103
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 182
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,207
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 300
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 185
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 114

 
  I build and install PyQT for python2 but it not recognize in python
Posted by: nadavvin - Mar-28-2019, 12:49 PM - Forum: GUI - Replies (7)

I try to run Spyder on python 2 therefore I needed to build PyQT.

make and make install for PyQT5, sip work without errors but spyder still complai..... More

Print this item

  How to show remove button at the right side of the hovering item of a combobox popup?
Posted by: indrajitmajumdar - Mar-28-2019, 11:24 AM - Forum: GUI - No Replies

Hi there,
What I want is a means/way to remove an item from the wxpython combobox without having to add a separate remove button somewhere else in th..... More

Print this item

  get the full address from a zip (postal) code
Posted by: mfran2002 - Mar-28-2019, 10:02 AM - Forum: General Coding Help - Replies (4)

Hi all,
I need to get the full address from a zipcode

my company has a contract to use google api, but I don't know where to start

thank you!
..... More

Print this item

  Build class to make a Smart list - trying
Posted by: icm63 - Mar-28-2019, 06:58 AM - Forum: General Coding Help - Replies (7)

Class

[python]
import datetime as dt


class Defaults:
"""Storage of Default Values"""

dbConStr = "pass:Name:Database;"
baseDa..... More

Print this item

  Help using a pre-code for Discrete Fourier Transform
Posted by: ToucheP - Mar-28-2019, 06:18 AM - Forum: Homework - No Replies

Hello,

This is the pre-code I have

[python]
# Discrete Fourier Transform Fn
def dft(fk):
Fn = []
N = len(fk)
for k in range(N):
..... More

Print this item

  Trouble figuring out how to pass a value between functions?
Posted by: Reta - Mar-28-2019, 04:37 AM - Forum: Homework - Replies (1)

Hey all, the following block of code yields a "decide" is not defined

I created a 'decide=input()' inside a function
Is it possible to call 'decid..... More

Print this item

  unix shell in python
Posted by: Skaperen - Mar-28-2019, 02:10 AM - Forum: Bar - Replies (3)

if you wrote a unix shell, or equivalent for windows, in python, what would the interactive commands be like? would you make them be pythonic?

Print this item

  need help with making a validating function
Posted by: drasil - Mar-28-2019, 01:03 AM - Forum: General Coding Help - Replies (8)

[b]i am trying to write a program that checks the entered number and print if it valid the number also has to limited to 9 characters and has to be a ..... More

Print this item

  Trouble coding hangman
Posted by: Tay - Mar-28-2019, 12:58 AM - Forum: General Coding Help - Replies (1)

So I have a code for hang man and i have a string of words to selct from Ive set up so as the word will be seperated by letter e.g

W o r d
I want..... More

Print this item

  "not defined" error in function referencing a class
Posted by: Exsul - Mar-27-2019, 11:31 PM - Forum: General Coding Help - Replies (2)

Question.py

class Question:
    def __init__(self, prompt, answer):
        self.prompt = prompt
        self.answer = answer
scratc..... More

Print this item

  removing tabs from input text
Posted by: jenya56 - Mar-27-2019, 10:55 PM - Forum: General Coding Help - Replies (3)

Hi, was wondering if you could help. My file f contains some tabs and I want to remove them. I have a code below that does read text line by line but ..... More

Print this item

  Index error using pop in nested loop
Posted by: PerksPlus - Mar-27-2019, 10:14 PM - Forum: General Coding Help - Replies (3)

Hello. This is my first post, so I hope I'm not screwing this up too badly. I'm trying to get back into Python and coding in general after a 10ish yea..... More

Print this item

  Help with tkinter; images and button commands
Posted by: SheeppOSU - Mar-27-2019, 09:45 PM - Forum: GUI - Replies (2)

I'm making a game and I have a few problems. The first is that the BG image shows up when the game is opened. I really just want it to open when the b..... More

Print this item

  Trying to Repeat a Function?
Posted by: DanielHetherington - Mar-27-2019, 09:06 PM - Forum: General Coding Help - Replies (1)

So I'm quite new to Python and I'm trying to make projects to hone my skills and learn new ones. Currently, I am making a game where your opponent (AI..... More

Print this item

  How to transform array into dataframe or table?
Posted by: python_newbie09 - Mar-27-2019, 08:53 PM - Forum: Data Science - Replies (2)

I would like to transform the array below into a dataframe with two columns. The values on the right will be column 1 and the values on the left will ..... More

Print this item

  Do not know how to what to do next
Posted by: sunhyunshine - Mar-27-2019, 08:12 PM - Forum: Homework - Replies (8)

Hello everyone, i am new to python and i have homework assignment.
My python ver. is 3.6.6
#The user is asked to enter the title and year of issue of..... More

Print this item

  Inserting new row into SQLite
Posted by: KevinBrown - Mar-27-2019, 07:46 PM - Forum: General Coding Help - Replies (5)

While trying to INSERT into SQLite, can anyone advise on the reason for the error syntax error given in the example CODE 1 while CODE 2 and CODE 2 fun..... More

Print this item

  while with try and except gets stuck in an endless loop?
Posted by: pcarra - Mar-27-2019, 06:52 PM - Forum: General Coding Help - Replies (3)

I am working on input validation to validate integer input and index range. My def inputNumber(message) function works as I use it in other areas of ..... More

Print this item

  Know in advance how long an algo is going to run
Posted by: nathan_toubiana - Mar-27-2019, 04:22 PM - Forum: Data Science - No Replies

Hey all,

Six months ago a friend and I got started on this interesting challenge: Could one accurately predict the training time of common data sci..... More

Print this item

  maze solution
Posted by: jenya56 - Mar-27-2019, 04:03 PM - Forum: General Coding Help - Replies (5)

Dear all,
I am stuck with this code. It appears to be working for most of the situations. But for this particular maze, it fails. I have a 2D array o..... More

Print this item

  Smtplib: What does context argument means?
Posted by: Pythenx - Mar-27-2019, 03:51 PM - Forum: General Coding Help - Replies (1)

In lines 13 and 14 what exactly does context mean? Why do we need to use it?
[python]import smtplib, ssl

port = 465 # For SSL
smtp_server = "smt..... More

Print this item

  while + if + elif + else combination
Posted by: ClassicalSoul - Mar-27-2019, 03:40 PM - Forum: General Coding Help - Replies (1)

What is wrong with this code?? If I input a number it says I get 'That is not a number'. Why?

[python]
while True:
text = input('Number (or \'Qu..... More

Print this item

  Getting an unexpected generator object ?
Posted by: mcgrim - Mar-27-2019, 12:33 PM - Forum: General Coding Help - Replies (19)

This program should find the difference between the integral of a specific function and the number obtained with the trapezoid formula.
I expect to ..... More

Print this item

  Automate the calculus of NDVI index on a 100 images
Posted by: yassine01 - Mar-27-2019, 12:13 PM - Forum: General Coding Help - No Replies

Hello.
I want to automate this code below for other 99 images, the problem that I have is that each image is in its specific folder as it's mentioned..... More

Print this item

  Finding Coordinates
Posted by: Sikum7 - Mar-27-2019, 11:25 AM - Forum: Data Science - No Replies

Hello,

I am new with python and i have been trying to find the cordinates of the tracked yellow color from the webcam. But I am not able to find th..... More

Print this item

  How to read PYD file?
Posted by: shashwat_math - Mar-27-2019, 10:05 AM - Forum: General Coding Help - Replies (1)

I am using 4Suite package for XML processing.
The folder structure saves XmlString.py, XmlString.pyc and XmlString.pyd files.
I am receiving error w..... More

Print this item

  Sorting csv or txt file on date and time
Posted by: AshBax - Mar-27-2019, 09:25 AM - Forum: General Coding Help - Replies (4)

Hi,

I'm trying to sort a large txt file on 2 columns: date and then time: I've enclosed a small sample of this:

1,2,3,4,5,6,7,8,9,10

201902..... More

Print this item

  Problem with croniter in python script
Posted by: Lafayette - Mar-27-2019, 09:02 AM - Forum: General Coding Help - No Replies

I have made a script in python to perform FTP transfers that will run in crontab every minute.

The script queries the MySQL database and translates..... More

Print this item

  color a string of characters in tkinter
Posted by: atlass218 - Mar-27-2019, 06:34 AM - Forum: GUI - Replies (6)

Hi,
I would like to color two character strings written in a Text tkinter widget according to the status of a check button (check mark or no check)...... More

Print this item

  Interesting/Fun Scripts?
Posted by: ejected - Mar-27-2019, 04:37 AM - Forum: News and Discussions - Replies (2)

Hey I just finished my first ever Python script. It was a web scraping script that required log in first. Did it in selenium with xpath.

What are s..... More

Print this item

  UnboundLocalError Problem
Posted by: DrChicken24 - Mar-27-2019, 02:28 AM - Forum: General Coding Help - Replies (1)

So I am making my first game in python. It is a text RPG. Obviously I can't post the entire code on here, but I think this will be enough to hopefully..... More

Print this item

  Custom data structure
Posted by: icm63 - Mar-26-2019, 11:34 PM - Forum: General Coding Help - Replies (2)

New to python, from .Net. I know python does not support arrays.

This class

[python]class myStructure:
""" My custom data structure for ar..... More

Print this item

  Simple Button click on image file to create action?
Posted by: jpezz - Mar-26-2019, 10:54 PM - Forum: GUI - Replies (4)

I am looking for a simple example of a python program that would display an image file and then be able to tell if the user clicked on the image with ..... More

Print this item

  str.format rounding to the left of the decimal
Posted by: ClassicalSoul - Mar-26-2019, 09:14 PM - Forum: General Coding Help - Replies (2)

Hi, I was wondering how I could make string.format round to the left of the decimal.


[python]
>>> x = 4. 542412343
>>> '{0} rounded to {1} decimals ..... More

Print this item

  Unbound local error while attempting to reference a list
Posted by: molassascookieman - Mar-26-2019, 08:37 PM - Forum: Homework - Replies (1)

I have a basic program in which I enter a business' sales, and it can use one of a few functions like finding the top selling store location and simil..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python is not working on ... 4 hours ago lary_p Pedroski55 General Codin...
  Can I develop a live vide... Yesterday, 04:48 mtrkhan mamta25 Web Scraping ...
  Help with Serial.write in... Yesterday, 02:09 racingsubby racingsubby General Codin...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
Most views
  The best Prog... 579421
  Tutorial Requ... 512498
  Web Scraping ... 442306
  Newbie with P... 386356
  New Users Int... 380530
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+ 12111
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
TimTom420 Yesterday
cruisesfares Yesterday
SNR Yesterday
Jonathan Yesterday
matt 11-26

User Panel Messages

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