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,282
» Latest member: MattCarters
» Forum threads: 38,792
» Forum posts: 175,875

Full Statistics

Online Users
There are currently 39 online users.
» 1 Member(s) | 34 Guest(s)
Bing, Apple, Google, deanhystad

Latest Threads
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
25 minutes ago
» Replies: 5
» Views: 87
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 46
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,477
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 134
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 58
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,059
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,297
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 358
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 197
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 261

 
  Embed Python console in GUI application
Posted by: deanhystad - Mar-20-2020, 04:50 AM - Forum: GUI - Replies (5)

I am trying to figure out how best to provide access to a python interpreter from inside a GUI based program. The GUI is the interface for a process ..... More

Print this item

  Miniature theater
Posted by: vieira_diniz - Mar-20-2020, 04:34 AM - Forum: General Coding Help - Replies (1)

Hello World! Big Grin Dear community;

I'm creating a miniature theater to show a story in a cemetery. I intent to manipulate the puppet perso..... More

Print this item

  How to use BERT for Q&A system?
Posted by: constantin01 - Mar-20-2020, 04:06 AM - Forum: Data Science - No Replies

I would like to build a system that responses to close-domain questions (linear algebra). Knowledge base is Wikipedia. How I can use BERT for this pur..... More

Print this item

  Pygame - Images As Buttons
Posted by: vman44 - Mar-20-2020, 02:16 AM - Forum: Game Development - Replies (3)

Hi,

I've been trying to develop a game w/ Pygame.

One of the items in my game is a "Goodbye" button.
This is a png file.

The Goodbye image w..... More

Print this item

  Dynamic method ?
Posted by: JohnnyCoffee - Mar-20-2020, 12:18 AM - Forum: General Coding Help - Replies (2)

I need to access a class method (moduleB) by returning a class A method. This I can do by importing the native module to receive the module name as a ..... More

Print this item

  How can I print the number of unique elements in a list?
Posted by: AnOddGirl - Mar-19-2020, 10:53 PM - Forum: Homework - Replies (5)

Using the dictionary below, I'm supposed to create a function that returns the number of unique items in the "items" list.

[python]shopping..... More

Print this item

  Trying to make boundries for the pygame
Posted by: bluewing101 - Mar-19-2020, 09:26 PM - Forum: Game Development - Replies (2)

Guys I have a problem is doing the boundaries of my pygame
I am trying to get the character not go above the pygame window

The code in the bottom ..... More

Print this item

  Using online python for course, How do I open a File that's a link?
Posted by: WhatsupSmiley - Mar-19-2020, 09:14 PM - Forum: General Coding Help - Replies (1)

Hi there!

I am doing a (beginner) python course online that allows us to use python in a jupyter notebook. I am trying to open a file that looks l..... More

Print this item

  Future of Jython now Python 2 support ended
Posted by: Wattletree - Mar-19-2020, 08:44 PM - Forum: News and Discussions - Replies (1)

Hi,
I am a relative newcomer to Python, by way of Robot Framework.

I have to write RF scripts to test a Java Swing application. I am therefore ..... More

Print this item

  Python PyQt5 - Change label text dynamically based on user Input
Posted by: ppel123 - Mar-19-2020, 08:32 PM - Forum: GUI - Replies (1)

Hi,
I am trying to create an app with 2 python files, the first reads the user input (either from python shell or from other source) and stores it in..... More

Print this item

  Creating function inside classes using type
Posted by: wolfmansbrother - Mar-19-2020, 06:50 PM - Forum: General Coding Help - Replies (3)

I am am stuck, i want to define a class with __init__ hsing the type format

[python]

Class A:
phish = 'Band'
a = A()

# above is the same as

a = ..... More

Print this item

  Conditional assignment ?
Posted by: Ilys - Mar-19-2020, 06:44 PM - Forum: General Coding Help - Replies (12)

Hello,

I'm trying to do a conditional assignment in psychopy (coding in python) but I don't really know how to do it.

[python]if d["StimuliType"] =..... More

Print this item

  Digitizing heatmap image
Posted by: deepa - Mar-19-2020, 05:45 PM - Forum: Data Science - Replies (2)

Hi,

I'd like to digitize a heatmap

Panel D in this source: https://www.ncbi.nlm.nih.gov/pmc/article...figure/F1/

I'm not sure what's the..... More

Print this item

  Help ANSI character and python...
Posted by: sid4g - Mar-19-2020, 05:21 PM - Forum: General Coding Help - Replies (2)

Hello, I have a text file that separates my data with "alt + 249" character (middle dot)
I figured out that python is a racist towards ANSI in a hard..... More

Print this item

  Creating barriers/boundaries help for Pygame
Posted by: bluewing101 - Mar-19-2020, 05:20 PM - Forum: Game Development - Replies (1)

In my code, I have been trying to create barriers so the character doesn't go outside the pygame window
Here is the code:
[python]
import pygame
f..... More

Print this item

  OSError: [Errno 26] Text file busy: '/var/tmp/tmp5qbeydbp
Posted by: batchenr - Mar-19-2020, 05:11 PM - Forum: General Coding Help - Replies (1)

Hey,

Im using python3 and i have this code :
[python]
import tempfile
temp_file = tempfile.mkstemp(dir="/var/tm..... More

Print this item

Question configparser.NoSectionError (Python 3.7)
Posted by: alpho - Mar-19-2020, 04:50 PM - Forum: General Coding Help - Replies (2)

Hello. When my script is restarting I often times will have these configuration errors.

Importing:

import configparser
Absolut..... More

Print this item

  TensorFlow install issues
Posted by: Pavel_47 - Mar-19-2020, 01:44 PM - Forum: Data Science - Replies (2)

Hello,

I had a lot of troubles while trying to make work TensorFlow with GPU support.
I plan to reinstall all the necessary tools.
If my vision i..... More

Print this item

  adding elements to a list that are more than a specific number
Posted by: Olavv - Mar-19-2020, 01:39 PM - Forum: General Coding Help - Replies (2)

How do I add elements from a list to another list that are more than a specific number?

I've tried this:
list1=[2, 5, 3]
list2=[]
if number in l..... More

Print this item

  Row Count
Posted by: phillyfa - Mar-19-2020, 01:23 PM - Forum: General Coding Help - Replies (3)

Hello,

I'm trying to count the number of records returned by a SQL query. The program writes to a .csv file, but I would like to output to a logfi..... More

Print this item

  Senior Python Developer, 6h/day, remote
Posted by: agatagasiorowska - Mar-19-2020, 01:05 PM - Forum: Jobs - Replies (1)

?️‍♂️ Senior Python Developer, 6h/day, remote
? Salary in PLN (B2B): 155-195 PLN / h (so 18600-23400 PLN assuming 120h/Month (20 days ..... More

Print this item

  Python 2.7 passing variables from functions
Posted by: zetto33 - Mar-19-2020, 12:50 PM - Forum: General Coding Help - Replies (1)

Hi, this is my first thread. I am beginning with Python, and I did not fully understand how can I transfer variables in between classes, nor outside c..... More

Print this item

  Object not Subscriptable
Posted by: AgileAVS - Mar-19-2020, 11:06 AM - Forum: Web Scraping & Web Development - Replies (2)

Help post:
How do you select the second or third element with the same class name while using selenium?
For instance,
Trial=browser.find_element..... More

Print this item

  Code to create a hanging rope
Posted by: Jeibros - Mar-19-2020, 10:43 AM - Forum: Game Development - Replies (4)

I am trying to simulate the physics of a 2D hanging rope, consistent of a series of n-links. It could be a series of four pendulums. I just want some ..... More

Print this item

  Need help to make an empty list with possibility to add
Posted by: Arnsol - Mar-19-2020, 10:33 AM - Forum: General Coding Help - Replies (1)

Question:
Add a trait "emner" to the class Student. This should be a list of topics, and represent topics that the student takes or have taken. The ..... More

Print this item

  Book 'Python in high school'
Posted by: arnbod - Mar-19-2020, 07:10 AM - Forum: News and Discussions - Replies (3)

I would like to promote the release of my book "Python in high school - Algorithms and mathematics".
It is a step-by-step explanation of programming..... More

Print this item

  Pass results of expression to another expression
Posted by: cmdr_eggplant - Mar-18-2020, 10:44 PM - Forum: General Coding Help - Replies (2)

I am attempting to pass the results of an expression to another expression. Here is an example of the code I am working with. For reference, this is f..... More

Print this item

  PyQt5 Help - Absolute Beginner!
Posted by: mnash48 - Mar-18-2020, 09:52 PM - Forum: GUI - Replies (2)

Absolute beginner here, have no idea what I am doing wrong. All I want to do here is have the pushButton in PyQt5 to change to "Working..." and Red wh..... More

Print this item

  proper use of 'end' in a 'with' statement
Posted by: ccrider27 - Mar-18-2020, 09:44 PM - Forum: General Coding Help - Replies (1)

Python newbie here.

Code snippet:

>>> with open('todos.txt') as tasks:
	for chore in tasks:
		print(chore, end=' ')
Synta..... More

Print this item

  task queue
Posted by: Valon1981 - Mar-18-2020, 09:29 PM - Forum: General Coding Help - Replies (8)

Hi,
I’d like to create a queue of tasks and share those tasks between two computers. I thought of just splitting the tasks evenly between the two com..... More

Print this item

  Help to find a string and read the next lines
Posted by: crlamaral - Mar-18-2020, 09:27 PM - Forum: General Coding Help - Replies (4)

Hello, I'm having trouble recognizing a specific line and reading two lines below it. I would like some help because I've tried many things and couldn..... More

Print this item

Question Formula / Algorithm help?
Posted by: alpho - Mar-18-2020, 06:16 PM - Forum: General Coding Help - No Replies

Hello,

I took on a project which is now 4,000+ lines of code and reaching completion. The last step of this project is to link the settings with th..... More

Print this item

  Rock, Paper, Scissors.. Help..hidden bug
Posted by: xxunknownxx - Mar-18-2020, 06:14 PM - Forum: General Coding Help - Replies (4)

everything running great but there is a bug that i cant find... there is not error coming back from this so basically i cant trace it back
--some ti..... More

Print this item

  Backtesting trading strategy
Posted by: Finpyth - Mar-18-2020, 05:37 PM - Forum: Data Science - Replies (1)

Hallo

This is my last question for my thesis.

I’m about to backtest my strategy, but ran into the problem that i have some price data from Eiko..... More

Print this item

  Sending data to php page
Posted by: ebolisa - Mar-18-2020, 05:34 PM - Forum: Web Scraping & Web Development - No Replies

Hi,

I'm trying to send data to a PHP page, but I get the error

[quote]TypeError: POST data should be bytes, an iterable of bytes, or a file obje..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data fetching for indian ... 25 minutes ago drakhsin snippsat Web Scraping ...
  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...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
Most views
  The best Prog... 579247
  Tutorial Requ... 512089
  Web Scraping ... 442181
  Newbie with P... 386289
  New Users Int... 379519
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+ 12109
buran 8196
snippsat 7390
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21
OtiliaBecker 11-21

User Panel Messages

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