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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,557

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 35 Guest(s)
Bing, AOL, Google, AOL

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

 
  Can anyone make sense of this?
Posted by: steve_shambles - Apr-19-2020, 05:17 AM - Forum: General Coding Help - Replies (7)

I am a bit of a fan of the infi-systray module:
https://github.com/Infinidat/infi.systray

I h..... More

Print this item

  Help using BeautifulSoup in Macproxy.py
Posted by: WakelessFoil - Apr-19-2020, 04:41 AM - Forum: Web Scraping & Web Development - No Replies

Hello everyone. I am new here and new to python in general so I apologize if I am not fluent with terms or explanations (still learning). I started ex..... More

Print this item

  Run a timer when a functions starts to see how long the function takes to complete
Posted by: Pedroski55 - Apr-19-2020, 02:51 AM - Forum: General Coding Help - Replies (2)

I made a little Python to remove watermarks from pdfs. It works OK.

After splitting the pdf into jpgs, I look for grey pixels and paint them white...... More

Print this item

  a range of lines in a file
Posted by: Skaperen - Apr-19-2020, 01:24 AM - Forum: News and Discussions - No Replies

would it be reasonably natural to specify a range on lines in a file (in a function or method call, or on the command line of a script) in the same wa..... More

Print this item

  Problems with if / else statement
Posted by: droid206 - Apr-19-2020, 12:44 AM - Forum: General Coding Help - Replies (6)

Below is my example code with what I am having trouble with. I can not figure out how to make it when you input t to make it print what 't' equals eve..... More

Print this item

  TypeError: list indices must be integers or slices, not float
Posted by: hissonrr - Apr-18-2020, 10:42 PM - Forum: General Coding Help - Replies (2)

I'm very very new to python, any idea what I am doing wrong here?

[python]
#Now we label and color our facies
# 1=Mudstone_Org_Si 2=Mudstone_Org..... More

Print this item

  How can import variable beteen classes in same module
Posted by: johnjh - Apr-18-2020, 09:27 PM - Forum: GUI - Replies (1)

I need to import this path variable from first class to another classes, this is my code:

[python]

import openpyxl

class Excell():
..... More

Print this item

  DataFrame
Posted by: jma23 - Apr-18-2020, 09:21 PM - Forum: Data Science - No Replies

Hello,


i want to create the dataframe more elegantly - how can this be done?


[python]df = pd.DataFrame({'itemID' : [],'date' : []})
for n i..... More

Print this item

  Date entry in box format issue
Posted by: PeroPuri - Apr-18-2020, 08:03 PM - Forum: GUI - Replies (6)

Hi everyone,
I've found this code to enter the date and that I'd like to use in tkinter but I'm having several issue:
[python]import tkinter as tk..... More

Print this item

  Creating a restart button for a Pythagorean Theorem Program
Posted by: pav1983 - Apr-18-2020, 07:59 PM - Forum: GUI - Replies (12)

Hi All,

This is my first post on this forum. I'm really excited to be a part of this community. What I'm trying to do here is I'm trying to make a ..... More

Print this item

  Making a duty roster
Posted by: test - Apr-18-2020, 07:57 PM - Forum: General Coding Help - Replies (4)

Hello!
I had started this project thinking it was relatively straight-forward. However, I hit several road-blocks along the way and the program kept ..... More

Print this item

  ınput-output HELP!
Posted by: bwdu - Apr-18-2020, 06:43 PM - Forum: General Coding Help - Replies (1)

Hi everybody!
In the code below ı M trying to write a program, that takes an integer n as command-line argument, reads
in n − 1 distinct integers be..... More

Print this item

  invalid syntax on Python 3.8.2
Posted by: REN - Apr-18-2020, 06:04 PM - Forum: News and Discussions - Replies (7)

Hello. My Terminal cannot execute what I write on IDLE.
The input was very simple.
x="hello"
print(x)

What do I have to do on Python 3.8.2 with ..... More

Print this item

  Unable to get current contents of the entry field where the content is the file path
Posted by: pmpinaki - Apr-18-2020, 06:02 PM - Forum: GUI - Replies (1)

My intention , allow user to select a file from the file explorer by clicking a button on Tkinter window application. I handled this button command us..... More

Print this item

  Using ROOT and opening TCanvas
Posted by: jj15g - Apr-18-2020, 05:41 PM - Forum: General Coding Help - Replies (1)

I'm creating a program to make some histograms from a datafile. I'm not sure how to use ROOT for this. This is my code

[python]#! /usr/bin/env pyth..... More

Print this item

  How to get a new line
Posted by: Calli - Apr-18-2020, 05:13 PM - Forum: Web Scraping & Web Development - Replies (2)

After scrapping the website everything works like expected here is the code
[python]
#!/usr/bin/python

import urllib2
from bs4 import BeautifulS..... More

Print this item

  Understand list comprehension and draw
Posted by: PUP280 - Apr-18-2020, 05:07 PM - Forum: General Coding Help - Replies (9)

Hello,

I'm a beginner and I try a lot of things with list comprehension to understand it. Considering that, I don't understand some things.

Firs..... More

Print this item

  Particle Physics and some for loops (ROOT required)
Posted by: jj15g - Apr-18-2020, 05:06 PM - Forum: General Coding Help - No Replies

Hello I'm working with a data file in the following format:

[output]4
1 0 0.000e+00 0.00000e+00 5.00000e+00 5.00000+00
8 1 2.842390e-01 -1.81830..... More

Print this item

  Measurement UI - Browser-based or GUI
Posted by: daneel42 - Apr-18-2020, 04:49 PM - Forum: GUI - No Replies

I need some suggestions and advice on what systems/framework to use to build a measurememt app/program.

sorry for the basic question, but this is m..... More

Print this item

  Throwing an error
Posted by: Nevalle - Apr-18-2020, 03:21 PM - Forum: Homework - Replies (2)

Hey all, This was a past homework assignment that I just wanted to get clarification on in regards to my code.
The program is suppose to roll 2 dice,..... More

Print this item

  TypeError: a bytes-like object is required, not 'str'.
Posted by: jacklee26 - Apr-18-2020, 03:18 PM - Forum: General Coding Help - Replies (4)

Do anyone know how to convert the byte to str. I used below code work on python2 but if I used python3 it will occur Error like this:
[color=#E74C3C]..... More

Print this item

  Extracting Text in a canvas using chain actions
Posted by: law - Apr-18-2020, 01:55 PM - Forum: Web Scraping & Web Development - Replies (3)

I'm Automating a site which has a canvas inside an Iframe. Have been able to navigate through the canvas and click on buttons using chain actions.
[p..... More

Print this item

  Inserting input into Word doc bookmark
Posted by: shappaeye - Apr-18-2020, 01:43 PM - Forum: General Coding Help - Replies (2)

Hey all,

I have a python script which asks for values from the user in a GUI in Windows, when the values are input, I want them to be placed in a b..... More

Print this item

  [split] Tutorial Requests
Posted by: ravulaajith - Apr-18-2020, 01:31 PM - Forum: Homework - Replies (8)

Hi I am new to python programming. I have to submit an assignment to be submitted. I am trying for the coding part for the past one week. I am not at..... More

Print this item

  Help: Dockable widget
Posted by: mart79 - Apr-18-2020, 01:25 PM - Forum: GUI - No Replies

I have a small GUI that has multiple group boxes (see below code).
Group box 1 (Named: Example 1) can be made visible or hidden using the menu.
How..... More

Print this item

  numpy.float64 object is not iterable
Posted by: jcdr91 - Apr-18-2020, 01:18 PM - Forum: Data Science - Replies (1)

Hi all,

I am a newbie in Python, trying out various ways to play around with Python, i am currently using version 3.7, I am trying to tweak a code ..... More

Print this item

  pip install pyinstaller
Posted by: Henalds - Apr-18-2020, 11:33 AM - Forum: General Coding Help - No Replies

I am trying to install Pyinstaller 3.6 using Pip 20.0.2 with Python 3.7.4 in an Anaconda3 environment but it always says it cant find the setuptools d..... More

Print this item

  Class Improvement
Posted by: Gokberk - Apr-18-2020, 09:58 AM - Forum: Code Review - Replies (4)

In this code, I just try to get data from user about animal nutrition, respiratory, excretory and reproductive. Then, I put these animal data class by..... More

Print this item

  What is error: "TypeError: 'module' object is not callable"
Posted by: phutran - Apr-18-2020, 08:37 AM - Forum: Networking - Replies (3)

[python]import getpass
import sys
import telnetlib
HOST = input("Enter device IP: ")
user = input("Enter your telnet user: ")
password = getpass...... More

Print this item

  Delete all contents of a file from the fifth line?
Posted by: PythonNPC - Apr-18-2020, 08:18 AM - Forum: General Coding Help - Replies (1)

Hello,

I want to delete all the contents of the file from under the fifth line.

Is this doable?
I don't want to just print the file on the cons..... More

Print this item

  average aggregate function
Posted by: winya - Apr-18-2020, 06:46 AM - Forum: Data Science - Replies (3)

How to find average aggregate function for two classifier using method in python?

Print this item

  Passing arguments into function, tkinter
Posted by: nanok66 - Apr-18-2020, 06:21 AM - Forum: GUI - Replies (3)

Hey folks,
I've got a very limited understanding of how to pass information through a function. I have a tkinter page with multiple buttons. (Jus..... More

Print this item

  How to assess elapsed time to execute a .exe file or opening a desktop application?
Posted by: Sudershan - Apr-18-2020, 01:59 AM - Forum: General Coding Help - Replies (2)

I used following code but not got any success. It is not providing the elapsed time to open the pdf file. Please help with suitable code. I am using p..... More

Print this item

  i want to create my own file-like object
Posted by: Skaperen - Apr-17-2020, 11:47 PM - Forum: News and Discussions - No Replies

i want to create my own file-like object that behaves by renaming a file to be written to append a unique temporary string to the created name and on ..... More

Print this item

  tkinter How to pass label fiilename to another module?
Posted by: johnjh - Apr-17-2020, 11:34 PM - Forum: GUI - No Replies

This is work fine if I pass entry but I don't understand how to do it in label filename.
this is same example to pass entry to another function https..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Unable to resolve FileNot... 3 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 4 hours ago fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... 8 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... 577305
  Tutorial Requ... 500535
  Web Scraping ... 440978
  Newbie with P... 385011
  New Users Int... 369465
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Today
sophielane Today
Oscar0057 Today
Cromulent Today
PhamMaria Today

User Panel Messages

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