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,419
» Latest member: encore
» Forum threads: 38,543
» Forum posts: 174,667

Full Statistics

Online Users
There are currently 430 online users.
» 0 Member(s) | 424 Guest(s)
Bing, Google, Google Image, Yandex, Apple

Latest Threads
what name to give to a ne...
Forum: News and Discussions
Last Post: Skaperen
1 hour ago
» Replies: 2
» Views: 32
White Screen Issue with T...
Forum: General Coding Help
Last Post: encore
1 hour ago
» Replies: 3
» Views: 1,098
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: Gribouillis
2 hours ago
» Replies: 3
» Views: 190
Get the string after a sp...
Forum: General Coding Help
Last Post: snl_9527
3 hours ago
» Replies: 5
» Views: 221
Eight Queens Problem, err...
Forum: General Coding Help
Last Post: snl_9527
6 hours ago
» Replies: 9
» Views: 547
I am sending messages usi...
Forum: General Coding Help
Last Post: Hendrikb
Yesterday, 09:38 AM
» Replies: 0
» Views: 90
function arguments
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:48 AM
» Replies: 1
» Views: 139
[Beautiful Soup] Replace ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 05:45 AM
» Replies: 1
» Views: 176
how to delete thread
Forum: Board
Last Post: DeaD_EyE
Apr-28-2025, 07:30 PM
» Replies: 4
» Views: 290
Atari Ping Pong Game
Forum: Code sharing
Last Post: deanhystad
Apr-28-2025, 05:04 PM
» Replies: 1
» Views: 164

 
  Update Image on Button Click
Posted by: the_muffin_man - Nov-04-2024, 11:47 PM - Forum: GUI - Replies (2)

Hi,

I have asked this before and searched online. The answers i am getting are just far beyond where I am up to. My code may not be the most effic..... More

Print this item

  For Loop beginner
Posted by: agoldav - Nov-04-2024, 05:55 PM - Forum: General Coding Help - Replies (2)

I'm just learning to code right now and Im experimenting with For Loops.
I tried this 2 options that I thought are the same but a get different resu..... More

Print this item

Photo General Coding - Bingo Generator
Posted by: Playpatterns - Nov-04-2024, 02:24 PM - Forum: General Coding Help - Replies (8)

I work at a senior nursing home. All we do is play Bingo. I have used every app to call numbers. The residents are complaining that the same numbers a..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to re-register .py file extension to new moved Python dir (on Windows)?
Posted by: pstein - Nov-04-2024, 12:00 PM - Forum: General Coding Help - Replies (5)

Assume I installed Python v3.1.3 in the default installation directory

C:\Program Files\Python\

Now I decide to move this installation directory..... More

Print this item

  Tic Tac Toe Remake
Posted by: menator01 - Nov-04-2024, 01:37 AM - Forum: GUI - Replies (2)

I thought I would re-write my first attempt at tkinter tictactoe.
[s]I've hit a bump. Can go through the first round but, after resetting it doesn't ..... More

Print this item

  Help Python Bot to search a database
Posted by: stream3366 - Nov-04-2024, 12:44 AM - Forum: General Coding Help - Replies (1)

Hello guys.. I'm new here, and I hope I'm posting this at the right section. anyway, Im creating a bot for a platform with this code:

[python]from..... More

Print this item

  Help Refining DataFrame
Posted by: GMAlves - Nov-03-2024, 11:02 PM - Forum: Data Science - Replies (2)

I have a DataFrame that I wish to refine in a way that only the relevant data stays on top. The only way I figured out how to do it was by separating ..... More

Print this item

  Looking for a DDS libraries [Solved]
Posted by: Hyster - Nov-03-2024, 06:53 PM - Forum: General Coding Help - Replies (2)

im looking for DDS libraries that can create {bc3 rgba 8 bpp DXT5: interpolated alpha" + genarated mipmaps}

PIL can create .dds but limited output..... More

Print this item

Question [removed] Python update on a distant machine
Posted by: paul18fr - Nov-03-2024, 04:45 PM - Forum: News and Discussions - No Replies

removed - not relevant

Print this item

  Understanding Key errors
Posted by: JMsc2player - Nov-03-2024, 01:04 AM - Forum: General Coding Help - Replies (1)

Sometimes when I run this code it throws a Key error for "data", other times (without changing anything) it retrieves the data.

[python]
from fli..... More

Print this item

  Funny regex to find primes
Posted by: DeaD_EyE - Nov-02-2024, 08:38 PM - Forum: Bar - No Replies

The idea came from this video: https://www.youtube.com/watch?v=5vbk0TwkokM
He refers also to this very detailed explanation: https://illya.sh/the-cod..... More

Print this item

  alignment ,seems to be a frame in the way [fixed]
Posted by: Hyster - Nov-02-2024, 08:00 PM - Forum: GUI - Replies (2)

   

im having huge trouble getting the 2nd row to line up to the left. the dirt settings frame i can move left with sticky="w" but th..... More


Attached Files

.py   main.py (Size: 22.6 KB / Downloads: 105)
Print this item

Question [SOLVED] [datetime.strptime] ValueError: time data 'foo' does not match format 'bar'
Posted by: Winfried - Nov-02-2024, 09:04 AM - Forum: General Coding Help - Replies (1)

Hello,

The following code works in other scripts that read an RSS feed, but for some reason, this one doesn't work with another site.

As shown, ..... More

Print this item

Heart Horror on TicTacToe
Posted by: revan - Nov-01-2024, 08:42 PM - Forum: Homework - Replies (1)

Hi there !
I'm a frist year IT student.
I have an issue with my IA on my TicTacToe script.
For now, she's working but she's playing twice on his ft..... More


Attached Files

.py   FINALV2.py (Size: 6.81 KB / Downloads: 117)
.py   testia.py (Size: 6.49 KB / Downloads: 107)
Print this item

  List comprehension not working right
Posted by: Cris9855 - Nov-01-2024, 08:13 PM - Forum: General Coding Help - Replies (3)

Hello,
I have written a small snipet using list comprehension, and is not working properly.
I have a dataset that I would like to iterate by row, an..... More

Print this item

  .dds create for mod
Posted by: Hyster - Nov-01-2024, 03:29 PM - Forum: Game Development - No Replies

im way new to python as an FYI (u can tell from the GUI Blush )

i built a script that creates a set of .dds images for a game (world of tanks)..... More


Attached Files

.py   main.py (Size: 21.83 KB / Downloads: 100)
.zip   dds-files.zip (Size: 3.31 KB / Downloads: 110)
Print this item

  How can I show Markdown with locally stored images?
Posted by: njminchin - Oct-31-2024, 10:59 PM - Forum: GUI - No Replies

I'm trying to show markdown within a Qt app which I've got working (it's a bit average with the externally referenced markdown script link...), but I ..... More

Print this item

  How to give widget a left margin within a QHBoxLayout?
Posted by: njminchin - Oct-31-2024, 06:00 AM - Forum: GUI - Replies (2)

I've got a widget placed within a QHBoxLayout, as well as a QGroupBox above it which has the same widgets within that. I want the widgets to align ver..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to make SVG's clickable?
Posted by: njminchin - Oct-31-2024, 03:44 AM - Forum: GUI - Replies (2)

I have an icon shown using a QtSvgWidget, and need to make it clickable but not sure how..

This is my relevant code:
[python]
from PyQt6 import QtSvg..... More

Print this item

  Python in Xcode
Posted by: Gehlker - Oct-31-2024, 02:48 AM - Forum: Tutorial Requests and Submissions - No Replies

I'm trying to run Python projects in Xcode because I really don't want to learn yet another editor. The instructions here:
<https://www.browserstack...... More

Print this item

  Flappy Bird Improvements
Posted by: KickinItWith_JDub - Oct-30-2024, 11:50 PM - Forum: Game Development - Replies (9)

I'm new here and into Python, so bare with me. I coded Flappy Bird following along with Clear Code's YouTube channel (https://www.youtube.com/watch?v=..... More


Attached Files

.py   flappybird.py (Size: 5.79 KB / Downloads: 131)
Print this item

  module 'openpyxl.workbook' has no attribute 'active'
Posted by: lsaavedra21 - Oct-30-2024, 02:36 PM - Forum: General Coding Help - Replies (5)

Hello team,

I am facing with the following issue when trying to download info to excel file, after clicking on hyperlink to download file the brow..... More

Print this item

  Widget Guidance for GUI layout
Posted by: njminchin - Oct-30-2024, 11:44 AM - Forum: GUI - Replies (3)

I have a GUI layout that I want to implement in PyQt6, but I'm a complete Qt n00b and need some guidance.
This is the layout I want to implement:
[a..... More


Attached Files

Thumbnail(s)
   
Print this item

Question Calculate the volume of piles of materials using aerial drone images
Posted by: WtonS - Oct-29-2024, 09:21 PM - Forum: General Coding Help - No Replies

Hello everyone, I’m new here.
I’d like to know if there’s any solution using Python with Machine Learning (ML) or Artificial Intelligence (AI) that c..... More

Print this item

  Install a module to a specific to Python Installation (one of many))
Posted by: tester_V - Oct-28-2024, 10:05 PM - Forum: General Coding Help - Replies (2)

Greetings!
It is kind of confusion to explain. Sorry about that!
I have 4 different Python versions installed on a Windows machine.
Python version ..... More

Print this item

  Shrink Python installation? Extract site-packages from .zip only on demand?
Posted by: pstein - Oct-28-2024, 10:10 AM - Forum: General Coding Help - Replies (4)

I installed recently to full Python on my Windows 10 system.

As I noticed this installation requires huge 4,85 GB (!) disk space.
Ok, I still have..... More

Print this item

  Simple webbot for testing
Posted by: narcpl69 - Oct-28-2024, 07:01 AM - Forum: Jobs - No Replies

I need someone who could make bot for me in Python - Selenium or other programming language if You preffer.

used for firefox or chromium

Ok so l..... More

Print this item

  Best way to make built-in functions available to my module functions?
Posted by: Pedroski55 - Oct-28-2024, 04:45 AM - Forum: General Coding Help - Replies (1)

Recently, there was a question about counting the numbers from a picture of 2 dice. I thought that was interesting, so I fiddled with it.

I import ..... More

Print this item

  Comparing two Pandas df’s and returning only changed records
Posted by: hobbycoder - Oct-28-2024, 03:28 AM - Forum: General Coding Help - Replies (1)

df2 contains circa 1M rows and 9 columns. df2 starts life as a copy of df1, and only has changes made to values, with no rows or columns added or del..... More

Print this item

  Docker Flask App on windows system
Posted by: Osaci - Oct-27-2024, 06:12 PM - Forum: Web Scraping & Web Development - No Replies

Hello!

I'm trying to build a flask chat app but facing following issue (on windows)

sending post and get requests works fine locally through
..... More

Print this item

Question Using PIL to resize an image produces no image
Posted by: Calab - Oct-27-2024, 05:16 PM - Forum: GUI - Replies (2)

I am selecting a file using a tkinter file dialog. I open the file, resize it, create a PhotoImage and then update my canvas. I end up getting no imag..... More

Print this item

  Numpy, array(2d,bool), flipping regions.
Posted by: MvGulik - Oct-26-2024, 06:42 PM - Forum: General Coding Help - Replies (2)

I got a numpy 2d bool array. And like to flip(True/False) some array regions. But have not found any hints in numpy docs.

So ... Is there some nump..... More

Print this item

  How to put my game loop into a function?
Posted by: temlotresid6 - Oct-26-2024, 11:45 AM - Forum: Game Development - Replies (7)

I am not sure if this is too much code to post, but this is the most code I've had in a single program so now it's overwhelming trying to solve this. ..... More

Print this item

  python error
Posted by: buraq1 - Oct-26-2024, 09:28 AM - Forum: General Coding Help - Replies (3)

Hi, I am working on an algorithm called Augmented random search (ARS) this is its main code:

[python]def mkdir(base, name):
path = os.path.jo..... More

Print this item

  SourceTrail errors: troubles in use or from the tool itself?
Posted by: paul18fr - Oct-26-2024, 06:06 AM - Forum: News and Discussions - Replies (1)

Hi,

I would like to know if somebody uses SourceTrail for its devs (while it is not supported since 2021)?

I tried to install it from binaries u..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what name to give to a ne... 1 hour ago Skaperen Skaperen News and Disc...
  White Screen Issue with T... 1 hour ago evelynfreya encore General Codin...
  where should DEFAULT_CIPH... 2 hours ago Skaperen Gribouillis General Codin...
  Get the string after a sp... 3 hours ago JanJan snl_9527 General Codin...
  Eight Queens Problem, err... 6 hours ago snl_9527 snl_9527 General Codin...
  I am sending messages usi... Yesterday, 09:38 Hendrikb Hendrikb General Codin...
  function arguments Yesterday, 06:48 Curbie Gribouillis General Codin...
  [Beautiful Soup] Replace ... Yesterday, 05:45 Winfried Winfried General Codin...
  how to delete thread 04-28, 19:30 Azdaghost DeaD_EyE Board
  Atari Ping Pong Game 04-28, 17:04 Azdaghost deanhystad Code sharing
  not running 04-28, 16:08 Azdaghost deanhystad General Codin...
Most views
  The best Prog... 557355
  Tutorial Requ... 424384
  Web Scraping ... 422891
  Newbie with P... 350954
  Thread remain... 324887
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12034
buran 8165
snippsat 7320
deanhystad 6806
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
encore Today
arturioworker Yesterday
wayenia Yesterday
davidmartin Yesterday
donjon4500 Yesterday

User Panel Messages

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