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,969
» Latest member: Zephlonix
» Forum threads: 38,731
» Forum posts: 175,554

Full Statistics

Online Users
There are currently 37 online users.
» 1 Member(s) | 30 Guest(s)
Google, Bing, AOL, Applebot, AOL, snippsat

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
47 minutes ago
» Replies: 0
» Views: 14
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: llarkin6
1 hour ago
» Replies: 4
» Views: 674
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
4 hours ago
» Replies: 8
» Views: 420
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,807
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 670
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,203
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,773
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,166
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,137
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,429

 
  Chagne a button's function after its first pressed
Posted by: TheStraying11 - Feb-14-2019, 01:20 PM - Forum: GUI - Replies (2)

I'm making a hidden object game, and I decided to use Kivy because I wanted to try it out.
One of the triggers for finding one of the hidden objects ..... More

Print this item

  Python - Database for Machine Learning application
Posted by: braveYug - Feb-14-2019, 12:07 PM - Forum: Data Science - Replies (2)

Hello Guys,

I am planning to create a ML application for predictive maintenance with Python. To create this app I will collect data (lots of) from ..... More

Print this item

  convert images into pixel dataframe into csv file using python
Posted by: synthex - Feb-14-2019, 11:43 AM - Forum: Data Science - Replies (3)

i want convert images to pixels

i do so

[python]from PIL import Image
im = Image.open('image.jpg')

pixels = list(im.getdata())


result = []
counte..... More

Print this item

  Download article without photo caption
Posted by: Helene_python - Feb-14-2019, 09:56 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

I am using the newspaper3k to download newspaper articles to .txt files. However, is there any way to only download the actual article, i.e. n..... More

Print this item

  Python Beacon positioning and animation with Raspberry pi matplotlib
Posted by: joefreedy - Feb-14-2019, 09:19 AM - Forum: General Coding Help - Replies (1)

[python]import blescan
import bluetooth._bluetooth as bluez


def calculate_accuracy(txpower, rssi):
if rssi == 0 or txpower == 0:
r..... More

Print this item

  Download multiple large json files at once
Posted by: halcynthis - Feb-14-2019, 08:41 AM - Forum: General Coding Help - No Replies

I'm trying to get the auction data from the world of warcraft API for all realms to be able to scan for certain items posted across all realms.

[py..... More

Print this item

  Want a list utf8 formatted but bytestrings found
Posted by: nikos - Feb-14-2019, 07:47 AM - Forum: General Coding Help - Replies (28)

[python]populate client listing into list
names.append( name )

names.append( '' )
names.sort()
names = tuple( [s.encode('utf8') for s in names] )[/py..... More

Print this item

  How I can fill class members?
Posted by: AlekseyPython - Feb-14-2019, 06:32 AM - Forum: General Coding Help - No Replies

If I set the class fields in the __init__ method, they will be set in every time when object is created, which is incorrect. At that not all classes h..... More

Print this item

  How to implement class register?
Posted by: AlekseyPython - Feb-14-2019, 06:19 AM - Forum: General Coding Help - No Replies

I write this code:
Creater.py:
[python]from Database.Tables import Career

class Creater:
REGISTRY = []

@classmethod
def register(cls..... More

Print this item

  Python Unittest
Posted by: roadrage - Feb-14-2019, 06:11 AM - Forum: Homework - No Replies

Hello,
I'm new to writing unittests for python scripts

below is a function I have written, so that scheduled start time for a Jira ticket can be a..... More

Print this item

  Calling from many different files
Posted by: davy_yg - Feb-14-2019, 04:31 AM - Forum: General Coding Help - Replies (1)

I wonder if in python you can call function from many different files without having to reference it yourself?


for example:

bet.py
[python]de..... More

Print this item

  modifying a list in an expression
Posted by: Skaperen - Feb-14-2019, 04:25 AM - Forum: General Coding Help - Replies (2)

i have some incoming data. each unit of data can be converted to a list. that list can be converted back to that data. the conversions are expressi..... More

Print this item

  invalid syntax
Posted by: davy_yg - Feb-14-2019, 04:20 AM - Forum: General Coding Help - Replies (5)

Hello,

I get this error message:


File "D:\Python\Python\bet.py", line 5
def __init__(self.total=100)
^
SyntaxErro..... More

Print this item

  Rock Paper Scissors Game, I need help.
Posted by: extraguac - Feb-14-2019, 03:47 AM - Forum: Game Development - Replies (2)

Hello,

I recently started learning python and I'm having lots of fun!
I made a very very simple, beginner game of Rock Paper Scissors, but I've h..... More

Print this item

  Help with Dictionaries and List of Lists
Posted by: artblinked - Feb-14-2019, 03:23 AM - Forum: General Coding Help - Replies (7)

Hello all!

I have been stuck for far too long on this issue and appreciate any and all help.

I have a global dictionary and I'm trying to add to..... More

Print this item

  Help with ValueError using ranint from random.
Posted by: FWendeburg - Feb-14-2019, 02:49 AM - Forum: General Coding Help - Replies (2)

Hi, I'm making a program that generates a given quantity of numbers randomly and prints them, but I don't understand why I get this error:

The cod..... More

Print this item

  remainder operator %
Posted by: noweare - Feb-14-2019, 01:02 AM - Forum: General Coding Help - Replies (3)

Hello, just joined the forum
I am going through the pdf Automating the boring stuff with Python and I am stuck on this little program.
I don't what I ..... More

Print this item

  Comparing the count of rows from the tables that are present in two different databas
Posted by: krt5 - Feb-13-2019, 10:03 PM - Forum: General Coding Help - Replies (6)

Say for example I have a database named A and B with same table name and with different set of records. I want to compare the count of the table 1 tha..... More

Print this item

  Passing basic auth data between views
Posted by: nikos - Feb-13-2019, 09:32 PM - Forum: General Coding Help - No Replies

I am trying to give files only to authenticated users. In one viewpoint i have this code:

[python] auth = request.authorization
if not auth or no..... More

Print this item

  Help Please guys
Posted by: AbuSiraj - Feb-13-2019, 09:20 PM - Forum: General Coding Help - Replies (2)

Help Please Guys Im to Programming .Problem scenario !!! to create a program for an online shop deal where if a customer buys five items they get the ..... More

Print this item

  Two dice Game of Pig help
Posted by: elliemehl - Feb-13-2019, 07:59 PM - Forum: Homework - Replies (2)

I've been working on my python assignment and have been hitting a lot of road blocks when trying to make my game of pig. I know I need an outside loop..... More

Print this item

  PySide2 with QtQuick & pyInstaller --> big executeable
Posted by: mame - Feb-13-2019, 07:38 PM - Forum: GUI - Replies (3)

Hi,

i experimented a little bit with PySide2 in combinatin with QtQuick & pyInstaller. I just build a small demo application which loads a QML file..... More

Print this item

  How to access routes using Bottle Framework
Posted by: nikos - Feb-13-2019, 06:48 PM - Forum: Web Scraping & Web Development - Replies (5)

i'am trying ti find the bottle's equivalenr for flask's

Quote:url_for( '/log', page=page[0] ), page[0] )

i try this as i actually i fin..... More

Print this item

  Displaying list of lists in template
Posted by: iFunKtion - Feb-13-2019, 05:46 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

I'm trying to create a list of url links in categories on a site at work, they use about 80 web based tools for content discovery and other thi..... More

Print this item

  Multiple inheritance - the right way ?
Posted by: denis_beurive - Feb-13-2019, 04:19 PM - Forum: General Coding Help - Replies (6)

Hello,

I am not sure to fully understand multiple inheritance with Python 3. I can implement what I want to implement. It works. However, I am not ..... More

Print this item

  AWS lambda script help - Listing untagged volumes
Posted by: jutler - Feb-13-2019, 02:36 PM - Forum: General Coding Help - No Replies

Below is my code and I am hoping someone can help me with the cleaning up the code and making it more effiencient. Basically, the code should iterate ..... More

Print this item

  How to in PySide/PyQt, zooming in and out UI
Posted by: Vladlen - Feb-13-2019, 02:11 PM - Forum: GUI - No Replies

I am once in a while practicing PySide in Maya and right now I want to have UI which will act differently with different zoom range. Basically, when I..... More

Print this item

  Superfluous whitespace found?
Posted by: CaptainCsaba - Feb-13-2019, 01:54 PM - Forum: General Coding Help - Replies (2)

hey! I wrote the following innocent little code:

[python]import glob, os
import PyPDF2

object = open("test" + '.pdf','rb')
reader = PyPDF2.Pdf..... More

Print this item

  Word replace with string
Posted by: dabozz - Feb-13-2019, 01:29 PM - Forum: General Coding Help - Replies (1)

Hi,

I would like to replace a word with a variable in a html file.
My code is:
[python]name = raw_input("Name: ")
s = open("helloworld.html").re..... More

Print this item

  SQL and fetchone
Posted by: Scorpio - Feb-13-2019, 12:52 PM - Forum: General Coding Help - Replies (6)

hello,

I don't understand the following error. you Ould find under my code and the file I try to enter in a database.
[python]import xml.etree.Ele..... More

Print this item

  Getting the Respective Value
Posted by: Vicolas - Feb-13-2019, 12:41 PM - Forum: GUI - Replies (4)

[python]
from tkinter import *
import Pmw

class Message:
def __init__(self):
self.root = Tk()
self.build_Message()
..... More

Print this item

  Delete directories in folder is not working after folder is updated
Posted by: asheru93 - Feb-13-2019, 11:59 AM - Forum: General Coding Help - Replies (2)

So I'm having an automated test that is deleting all the projects inside Projects folder.

[python]

folder = myPath\Projects\Project1
..... More

Print this item

  Bug that crashes the Python interpreter 3.7 on Mac OS X
Posted by: Stef - Feb-13-2019, 11:35 AM - Forum: General Coding Help - Replies (1)

I'm pretty new to Python and am currently exploring Flask. I wanted to subclass one the Field classes to create a percentage field but when I add it t..... More

Print this item

  literate programming
Posted by: DavidEpstein - Feb-13-2019, 11:05 AM - Forum: General Coding Help - Replies (3)

A Python beginner, I am writing up some python code that would be more understandable with some latex documentation (producing a PDF) with mathematica..... More

Print this item

  Module which run in PyCharm but not as exe or terminal.
Posted by: diegoctn - Feb-13-2019, 10:12 AM - Forum: General Coding Help - Replies (3)

Hello everyone,

I've built a nice moduel using pandas, pyodbc and tkinter. Everything looks fime when I trigegr the module from PyCharm. However, ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... 47 minutes ago fosuwxb fosuwxb Code sharing
  Unable to resolve FileNot... 1 hour ago llarkin6 llarkin6 General Codin...
  Comparing 2 100GB Drives/... 4 hours ago tester_V snippsat General Codin...
  Select Python comment (#)... Yesterday, 18:39 SpongeB0B tester_V General Codin...
  My goal to be hired worki... 09-27, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577299
  Tutorial Requ... 500496
  Web Scraping ... 440968
  Newbie with P... 384999
  New Users Int... 369433
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+ 12089
buran 8176
snippsat 7370
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Zephlonix Today
samuelshlzeo7159 Today
Seu12Jorge Yesterday
seomelbourneaustralia Yesterday
zalexstolzeoz5360 Yesterday

User Panel Messages

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