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,522
» Latest member: Kenwen263
» Forum threads: 38,586
» Forum posts: 174,841

Full Statistics

Online Users
There are currently 494 online users.
» 0 Member(s) | 485 Guest(s)
Bing, Yandex, Google, Applebot, Twitter

Latest Threads
Functions: why use a vari...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 2
» Views: 137
PYTHONHOME Variable corre...
Forum: General Coding Help
Last Post: msetzerii
4 hours ago
» Replies: 0
» Views: 47
Best way to pass data to ...
Forum: Game Development
Last Post: RogereK
Yesterday, 06:39 AM
» Replies: 7
» Views: 5,104
Is Python used to make po...
Forum: Game Development
Last Post: RogereK
May-24-2025, 04:17 AM
» Replies: 17
» Views: 31,792
Unequal values when added...
Forum: General Coding Help
Last Post: deanhystad
May-24-2025, 12:24 AM
» Replies: 1
» Views: 220
Call CLI app with input?
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:52 PM
» Replies: 5
» Views: 391
backtesting can't optimiz...
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:46 PM
» Replies: 1
» Views: 161
Looking for ideas
Forum: Bar
Last Post: Larz60+
May-23-2025, 10:55 AM
» Replies: 2
» Views: 479
How to put my game loop i...
Forum: Game Development
Last Post: RogereK
May-23-2025, 12:35 AM
» Replies: 9
» Views: 2,712
Languages
Forum: General Coding Help
Last Post: Arush
May-22-2025, 06:51 PM
» Replies: 2
» Views: 287

 
  How do you marshal the default printer setup to print?
Posted by: hammer - May-29-2022, 02:54 PM - Forum: General Coding Help - No Replies

I have data in an app that I have put into a .txt file and print using:
[python]
os.startfile("--------.txt" , "print") #from a button in the app th..... More

Print this item

  Pathlib import not working
Posted by: chriswrcg - May-29-2022, 01:04 PM - Forum: General Coding Help - Replies (9)

This is my first attempted script so it is of course not working.

I am trying to open outlook, find an email, and download the attachment

The fi..... More


Attached Files

.py   main.py (Size: 494 bytes / Downloads: 290)
Print this item

  Error notification after encoding
Posted by: robertje1024 - May-29-2022, 12:29 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I'm new here, sorry for my english is not so good.
I'm learning Python and get an error message after entering a code.

This i..... More

Print this item

  how to convert and format a varable
Posted by: darktitan - May-29-2022, 11:09 AM - Forum: General Coding Help - Replies (4)

Hi
can any one pls help me with convering and formating the variable timeset so my cod can work.
it works only if i replace the timeset variable wit..... More

Print this item

  Knapsack 0-1 & Python & qbasic qb64 & WE
Posted by: DANILIN - May-29-2022, 07:30 AM - Forum: Code sharing - Replies (2)

Knapsack 0-1 & python & qbasic qb64 & WE

Classic Knapsack problem is solved in many ways

Contents: http://rosettacode.org/wiki/Knapsack_problem..... More

Print this item

  Windows paths issue
Posted by: otalado - May-29-2022, 03:37 AM - Forum: General Coding Help - Replies (3)

Using Python 3.7 on Windows 10 pro, I ran to the strange thing:
Path to vlc.exe on my PC is: C:\Program Files\VideoLAN\VLC\vlc.exe. In my scri..... More

Print this item

Lightbulb MacOS can't make it
Posted by: Archi - May-29-2022, 01:09 AM - Forum: General Coding Help - Replies (1)

Hello, folks! Im only starting my python journey. Now Im learning walk function in OS and its simply doesn't work. Can you suggest me something please..... More


Attached Files

Thumbnail(s)
       
Print this item

  Multiply Lists of Lists
Posted by: klatlap - May-29-2022, 12:39 AM - Forum: Data Science - Replies (5)

I have a set of lists like this
[0.74, 0.91, 1.22, 0.91, 1.07, 1.07, 1.07, 1.07, 1.07, 0.74, 0.91, 0.91, 1.07, 1.07, 0.91, 1.07]
[1.23, 0.97, 2.09, ..... More

Print this item

  pip doesn't work after Python upgrade
Posted by: Pavel_47 - May-28-2022, 02:53 PM - Forum: General Coding Help - Replies (10)

Hello,

After upgrading Python 3.6 to Python 3.10, pip became broken:

[output]pavel@ALABAMA:~$ pip3 --version
Traceback (most recent call last):..... More

Print this item

Photo Connecting progress bars to sensors
Posted by: anastejzja - May-28-2022, 08:23 AM - Forum: GUI - Replies (1)

Hi, I'm trying to make a whole GUI to control a robot, but I'm having real trouble with connecting the 5 sensors from the robot to the progress bars i..... More


Attached Files

Thumbnail(s)
   

.py   main.py (Size: 11.44 KB / Downloads: 287)
Print this item

  LANCZOS
Posted by: DPaul - May-28-2022, 06:37 AM - Forum: GUI - Replies (6)

HI,
I have an app that uses (PIL) Image.LANCZOS while resizing a TIF file.
The app runs fine on windows 11. No messages.
It also runs fine on my l..... More

Print this item

  Yahoo Premium
Posted by: pogere - May-27-2022, 08:38 PM - Forum: Data Science - Replies (1)

I'm Brazilian, I'm working on a data science project and I need to access historical information about the exchange (financial mainly), however Yahoo ..... More

Print this item

  Convert string to float problem
Posted by: vasik006 - May-27-2022, 07:15 PM - Forum: General Coding Help - Replies (8)

Hi, I have a problem converting a string to a float. The program receives data from Arduino via the serial port and processes it. But I'm getting this..... More


Attached Files

Thumbnail(s)
   
Print this item

  Basic PyQt6 Example of a timer
Posted by: menator01 - May-27-2022, 05:24 PM - Forum: Code sharing - No Replies

[python]from PyQt6.QtWidgets import (QApplication, QWidget, QLabel, QPushButton, QMessageBox, QGridLayout,
QMainWindow)..... More

Print this item

  Python 100 line Challenge
Posted by: codingCat - May-27-2022, 02:14 PM - Forum: Code sharing - Replies (9)

The goal of the 25 line challenge was to see how much could be squished into a very minimal space. It was amazing to see how low people could go. I w..... More

Print this item

  [SOLVED] [ElementTree] Grab text in attributes?
Posted by: Winfried - May-27-2022, 12:21 PM - Forum: General Coding Help - Replies (3)

Hello,

I'm not very good at XPath, and am a bit lost at the..... More

Print this item

  Help needed with a "for loop" + error handling
Posted by: tamiri - May-27-2022, 11:28 AM - Forum: General Coding Help - Replies (2)

I would like to iterate over a list of items.
In each round, Python is checking the latest Excel file in a folder, opens it, and saves it.

Upon an..... More

Print this item

  How to filter a table view using SortFilterProxyModel
Posted by: DrakeSoft - May-27-2022, 10:44 AM - Forum: GUI - Replies (8)

Hi,

I have tried to create a sample program to help me figure out how the SortFilterProxyModel works in PyQT.

[python]

from PyQt5.QtWidgets import ..... More

Print this item

  How can I add certain elements in this 2d data structure and calculate a mean
Posted by: TheOddCircle - May-26-2022, 08:09 PM - Forum: General Coding Help - Replies (3)

[python]
# ------------------------------------------------------------
# Import libraries
# ------------------------------------------------------..... More

Print this item

  How to get list of exactly 10 items?
Posted by: Mark17 - May-26-2022, 01:24 PM - Forum: General Coding Help - Replies (1)

I'm getting a traceback on this line:

[Python]
axs[1].set_xticks(list(range(1,len(btstats.index),len(btstats.index)//(len(xtick_labels_converted)-..... More

Print this item

  scatter3D different markers per data
Posted by: erdemath - May-26-2022, 01:09 PM - Forum: Data Science - Replies (5)

I have an issue with data visualization in 3D scatter plot. I have regionally stratified some data, say data_A, data_B, data_C. I need to display them..... More


Attached Files

Thumbnail(s)
   
Print this item

  Best books for programming
Posted by: katy1234 - May-26-2022, 12:47 PM - Forum: News and Discussions - No Replies

Hi, Good Day
This is Katy Steven. I am in first year of my engineering and lots of programming language I am learning here. I am very exited about le..... More

Print this item

  migrate code from tkinter to pygame
Posted by: Frankduc - May-26-2022, 12:04 PM - Forum: General Coding Help - Replies (16)

Hi,

I already post about this but i am totally lost i have no clue how to make it work. I am unable to make my button work in tkinter. So i have to m..... More

Print this item

  QT Designer
Posted by: Krissstian - May-26-2022, 06:16 AM - Forum: GUI - Replies (4)

Hi,
First of all I'm new in Python.
I have made with QT Designer a gui for my project an convert it into .py with external tool from PyCharm.
The b..... More

Print this item

  HELP PLS i cannot figure out why this error is happerning
Posted by: StruckGuide8154 - May-25-2022, 09:27 PM - Forum: Data Science - No Replies

here is my code error:
Traceback (most recent call last):
File "C:\Users\harrison.DESKTOP-QMMSLCP\ai\ai.py", line 111, in <module>
words = pi..... More

Print this item

  Accessing same python script from multiple computers
Posted by: bigrockcrasher - May-25-2022, 06:29 PM - Forum: General Coding Help - Replies (1)

I currently work in a facility that uses a very large ZFS using the NFS protocol. We have many servers that are running a variety of Linux distributio..... More

Print this item

  Python to DLL
Posted by: tcomponent - May-25-2022, 05:56 PM - Forum: General Coding Help - Replies (2)

Hi, Python Forum Smile

I'm a new member here. And also new in Python.
My name is Stephanus, you can call me Steven, from Indonesia.

I wou..... More

Print this item

  Popups
Posted by: Axel_Erfurt - May-25-2022, 05:13 PM - Forum: Board - Replies (5)

Is it possible to turn off the popups with the content of the post? They're really annoying.

Print this item

  User-defined function to reset variables?
Posted by: Mark17 - May-25-2022, 02:31 PM - Forum: General Coding Help - Replies (3)

Hi all,

A general outline of my program could be written as something like this:

[Python]
Variable initiation (reset)

Control branch A

..... More

Print this item

  Reordering output messages
Posted by: paulo79 - May-25-2022, 02:02 PM - Forum: General Coding Help - Replies (4)

Hi all,

I have a script where I do a loop condition and show ERROR or OK messages depending of each line return. Example:
[python]for v_count_gds..... More

Print this item

  No collision video
Posted by: Gribouillis - May-25-2022, 01:38 PM - Forum: News and Discussions - Replies (1)

I came across this nice youtube video showing non colliding balls moving in a plane. The progra..... More

Print this item

  Clean Up Script
Posted by: rotw121 - May-25-2022, 09:45 AM - Forum: General Coding Help - Replies (2)

Hi Everyone, I am new to Python and jumping into automating certain processes. Learning so much.

One of the scripts I am working on is figuring out..... More

Print this item

  Code review of my rock paper scissors game
Posted by: Milan - May-25-2022, 06:59 AM - Forum: Code Review - Replies (2)

Hello team,

I would like to submit my rock paper scissors game for code review. Any suggestion on how to improve it is more than welcome.

[pytho..... More

Print this item

  Trying to parse only 3 key values from json file
Posted by: cubangt - May-24-2022, 09:04 PM - Forum: General Coding Help - Replies (8)

So im playing around with parsing a json file in python.
Im able to read in the file and print it to the console, but now i want to extract 3 values ..... More

Print this item

  PyCon 2022
Posted by: snippsat - May-24-2022, 07:48 PM - Forum: News and Discussions - No Replies

[Image: 1*mXCpIzzJNFuGZyJGf4qnSw.png]
Her is the ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Functions: why use a vari... 3 hours ago MMartin71 deanhystad General Codin...
  PYTHONHOME Variable corre... 4 hours ago msetzerii msetzerii General Codin...
  [PyGame] Best way to pass... Yesterday, 06:39 Milosz RogereK Game Developm...
  Is Python used to make po... 05-24, 04:17 ironsheep RogereK Game Developm...
  Unequal values when added... 05-24, 00:24 Azdaghost deanhystad General Codin...
  Call CLI app with input? 05-23, 19:52 Winfried snippsat General Codin...
  backtesting can't optimiz... 05-23, 19:46 Running_Code snippsat General Codin...
  Looking for ideas 05-23, 10:55 Azdaghost Larz60+ Bar
  How to put my game loop i... 05-23, 00:35 temlotresid6 RogereK Game Developm...
  Languages 05-22, 18:51 Azdaghost Arush General Codin...
  Error on import: SyntaxEr... 05-21, 07:49 kirkwilliams2049 Kiongi General Codin...
Most views
  The best Prog... 568557
  Tutorial Requ... 469560
  Web Scraping ... 433312
  Newbie with P... 372569
  Thread remain... 344516
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12053
buran 8171
snippsat 7328
deanhystad 6829
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Kenwen263 Today
Rudolphacext Today
msetzerii Yesterday
RudolphErync Yesterday
Rudolphdaubs Yesterday

User Panel Messages

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