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,534
» Latest member: homerpalmer
» Forum threads: 38,662
» Forum posts: 175,194

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 36 Guest(s)
Baidu, Bing, Google, Yandex

Latest Threads
Custom Sorting List of Di...
Forum: Homework
Last Post: deanhystad
11 minutes ago
» Replies: 2
» Views: 172
Unable to define function...
Forum: Homework
Last Post: deanhystad
21 minutes ago
» Replies: 1
» Views: 36
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
10 hours ago
» Replies: 6
» Views: 659
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
10 hours ago
» Replies: 3
» Views: 156
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Today, 01:32 AM
» Replies: 1
» Views: 108
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:23 AM
» Replies: 7
» Views: 472
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Jul-12-2025, 04:00 PM
» Replies: 3
» Views: 269
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Jul-12-2025, 02:41 AM
» Replies: 5
» Views: 252
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 4,012
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 251

 
  QActions and Unicode glyphs
Posted by: malonn - Oct-05-2022, 12:38 PM - Forum: GUI - Replies (9)

I'm trying to add Unicode glyphs to a QAction. But, my attempts thus far are crashing my desktop (actually logging me out). How do I use Unicode cha..... More

Print this item

  QGridLayout and stretching widgets when maximized
Posted by: malonn - Oct-05-2022, 08:23 AM - Forum: GUI - Replies (1)

I have a QGridLayout set with 2 rows and 2 columns. Column 0 spans 2 rows, column 1 has a QTableView in row 0 and a image (QLabel) in row 1. When I ..... More

Print this item

  Tips on Converting BASIC to Pygame
Posted by: robin73 - Oct-05-2022, 08:03 AM - Forum: Game Development - Replies (4)

I posted on Stack Overflow about wanting some feedback/advice on converting old ZX Basic games to Pygame. I'd like to get some input on it, but so far..... More

Print this item

  Add\insert header row existing csv files
Posted by: mg24 - Oct-05-2022, 06:11 AM - Forum: General Coding Help - No Replies

Hi Team,

I am opening existing csv files, and Want to insert records at first row.

if I use inplace=True , file get overwrites
if I use inplac..... More

Print this item

  Moving data from one Excel to another and finding maximum profit
Posted by: azizrasul - Oct-04-2022, 09:48 PM - Forum: General Coding Help - Replies (7)

I have the following code: -

[python]import pandas as pd

out = pd.read_excel(io = "E:/Folder/Company Financials.xlsx", sheet_name = "Sales", use..... More

Print this item

  What do you do outside of work?
Posted by: Jan_97 - Oct-04-2022, 07:13 PM - Forum: Bar - Replies (4)

Outside of work and all things related to tech. What do you enjoy doing?


Me personally I love exercising and hiking. It helps me relax after a lo..... More

Print this item

  Shapes over video in tkinter
Posted by: finndude - Oct-04-2022, 05:49 PM - Forum: General Coding Help - Replies (1)

Hi all,

I wanted to know if there is a way in Tkinter to simply play a video and with a button press, a circle appears on top of the video?

Print this item

  Tetris inteligence
Posted by: DanTDRG - Oct-04-2022, 05:24 PM - Forum: Game Development - Replies (5)

Hello, could someone help me write tetris intelligence?
I understand that there is a lot of it on the internet but unfortunately I can't edit it exce..... More

Print this item

  How to break out of a for loop on button press?
Posted by: philipbergwerf - Oct-04-2022, 03:59 PM - Forum: General Coding Help - Replies (6)

[python]from tkinter import *

# root
root = Tk()
root.title('SeqTank')
scrwidth = root.winfo_screenwidth()
scrheight = root.winfo_screenheight(..... More

Print this item

  PyMuPDF
Posted by: rob101 - Oct-04-2022, 01:11 PM - Forum: General Coding Help - No Replies

Has anyone had any experience (good or bad) using PyMuPDF?

I've not tried it yet, but I can foresee a situation whereby it would be ideal to be a..... More

Print this item

  Insert header at first row, for existing csv
Posted by: mg24 - Oct-04-2022, 11:36 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I have input data in csv file like below.

1,EAST,100
2,WEST,200
3,SOUTH,300
4,NORTH,400


I want to add these headers to above in..... More

Print this item

  How do I make a game save?
Posted by: BliepMonster - Oct-04-2022, 10:49 AM - Forum: General Coding Help - Replies (6)

Hello,
I am making a game with python and the content is expanding really fast. It's beginning to reach the point that it can't be played in one sitt..... More

Print this item

  How to call a function in Python 3
Posted by: bmharwani - Oct-04-2022, 07:45 AM - Forum: Tutorial Requests and Submissions - No Replies

This video tutorial explains how to call a function in python 3 and understand advantage of using function and the syntax of def and return function i..... More

Print this item

  counting lines in split data
Posted by: Skaperen - Oct-03-2022, 10:16 PM - Forum: General Coding Help - Replies (6)

i am getting data in an ordered sequence of buffers one at a time. an example is reading a data pipe 4096 bytes at a time. i want to count the numbe..... More

Print this item

  TypeError: sequence of byte string values expected, value of type str found
Posted by: witgrefe - Oct-03-2022, 01:38 PM - Forum: Tutorial Requests and Submissions - No Replies

I am trying to get mod_wsgi up and running but when I try to open a test page with the following code I get the error saying that a byte string is exp..... More

Print this item

  python Extract sql data by combining below code.
Posted by: mg24 - Oct-03-2022, 09:02 AM - Forum: General Coding Help - Replies (1)

Hi Team,

How to combine below two code both code works, I want sql data using SCP Method.
SCP method is faster to extract data. SCP method does n..... More

Print this item

  Using locationtagger to extract locations found in a specific country/region
Posted by: lord_of_cinder - Oct-03-2022, 06:52 AM - Forum: General Coding Help - Replies (1)

I have found locationtagger as a python based tool which can help me extract locations from a piece of text. My problem is the locations to be ..... More

Print this item

  Develop neural network for consumption function
Posted by: vaibhavpwr101 - Oct-03-2022, 05:29 AM - Forum: Homework - No Replies

I am new to python and I do not no how to approach to this problem. please suggest me how to do it. Its really important for me


The consumption f..... More

Print this item

  [Solved]How to Run GUI MsgBox From Terminal Properly
Posted by: Extra - Oct-02-2022, 08:09 PM - Forum: GUI - Replies (4)

Hello,

I'm trying to make an alert GUI that pops up/activates after a certain amount of time or when it's called by my program.

Right now I'm tr..... More

Print this item

  Making a function more efficient
Posted by: CatorCanulis - Oct-02-2022, 07:24 AM - Forum: General Coding Help - Replies (9)

Hi everyone,

I'm working on a function that avoids transposed numbers. Like if you have 12 you can't have 21 or if you have 126 you can't have 216 ..... More

Print this item

  re.sub not working
Posted by: Ryokousha - Oct-02-2022, 04:18 AM - Forum: General Coding Help - Replies (7)

I have a simple mad libs genarator and template text. when I try to replace part of speech it's just do noting and return unchanged string. I don't kn..... More


Attached Files

.txt   The Monkey King!.txt (Size: 389 bytes / Downloads: 183)
.py   main.py (Size: 1,007 bytes / Downloads: 277)
Print this item

  Changing the initial worksheet name in an MS Excel file
Posted by: azizrasul - Oct-02-2022, 03:11 AM - Forum: General Coding Help - Replies (3)

In the following code I want the initial sheet name to change from 'Sheet' to some other name. What code can I use to do this. Is there a way of makin..... More

Print this item

  [Solved]Add a Blank Row To QTableView
Posted by: Extra - Oct-01-2022, 10:11 PM - Forum: GUI - Replies (3)

Hello,

I have a GUI that displays some tables and I have an "Add Item" button that, when clicked, I would like it to add a new (blank) row to the t..... More

Print this item

  how is Ellipsis or ... used?
Posted by: Skaperen - Oct-01-2022, 06:58 PM - Forum: News and Discussions - Replies (9)

how is Ellipsis or ... used in Python code? has anyone here had a need to use it? has anyone here ever seen it used in code not in a comment?

[py..... More

Print this item

  while loop
Posted by: idddj - Oct-01-2022, 08:22 AM - Forum: Homework - Replies (8)

So I was required to solve this question:[i] Write a program to use a while loop to read the numbers from the user repeatedly until he/she inputs 0. T..... More

Print this item

  Csv writer meaning of quoting
Posted by: mg24 - Oct-01-2022, 02:15 AM - Forum: General Coding Help - Replies (2)

Hi Team,

in below code I want understand what quoting does.

What is the meaning of these, in which situation others to use it.

csv.QUOTE_NONN..... More

Print this item

  updating Google spreadsheet with gspread
Posted by: mgallotti - Sep-30-2022, 10:53 PM - Forum: General Coding Help - No Replies

Hello,
I've been working on updating a spreadsheet in Google drive. I'm trying to use gspread to do this. I've been able to find the spreadsheet by..... More

Print this item

  iterating and detecting the last
Posted by: Skaperen - Sep-30-2022, 10:38 PM - Forum: General Coding Help - Replies (3)

i am iterating over a list (or tuple). for each item except the last item i need to do a specific thing. for the last item i need to do something di..... More

Print this item

  Why doesn't it show me anything in print?
Posted by: Melcu54 - Sep-30-2022, 08:35 PM - Forum: General Coding Help - Replies (2)

Why doesn't it show me anything in print?

[python]import re
import html
from urllib import parse
import requests

GOOGLE_TRANSLATE_URL = 'http..... More

Print this item

  Creating list of lists, with objects from lists
Posted by: sgrinderud - Sep-30-2022, 08:04 PM - Forum: General Coding Help - Replies (7)

Hi,
I have two lists like this:

List1 = ['1','2','3','5']
list2 = ['a','b','c','d','e']
and im trying to combine them into..... More

Print this item

  Create SQL connection function and validate
Posted by: mg24 - Sep-30-2022, 07:10 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to create a sql connection function , and validate if it is successfully connected it or not.
I attempted with below code. code works..... More

Print this item

  My survival game
Posted by: BliepMonster - Sep-30-2022, 06:56 PM - Forum: Code Review - No Replies

So I've been coding for a few weeks and made this text survival game. Can someone give a review or tell how I could change my code?

(The game is in..... More


Attached Files

.py   survival spel 1.5 klad.py (Size: 36.45 KB / Downloads: 8)
Print this item

  Use of pygame
Posted by: ebolisa - Sep-30-2022, 06:22 PM - Forum: General Coding Help - Replies (2)

Hi,

The following code plays only the beginning of a file:

[python]pygame.mixer.init()
pygame.mixer.music.load('my_music.mp3')
pygame.mixer.mu..... More

Print this item

  Pandas groupby warning *** WARNING ***
Posted by: Larz60+ - Sep-30-2022, 04:38 PM - Forum: News and Discussions - No Replies

Please read the following pandas warning:
https://pbpython.com/groupby-warning.html

Print this item

  SQL Alchemy help to extract sql data into csv files
Posted by: mg24 - Sep-30-2022, 12:14 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to download sql table data with header from using SQL Alchemy.

using pyodbc library I have downloaded 60gb data. Using read in chu..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Custom Sorting List of Di... 11 minutes ago aryasinner deanhystad Homework
  Unable to define function... 21 minutes ago gmonroe deanhystad Homework
  RemoTe server operation w... 10 hours ago mario17 snippsat General Codin...
  Qt Event Filtering 10 hours ago deanhystad deanhystad GUI
  processing nested json da... Today, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt Yesterday, 11:23 vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... 07-12, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... 07-12, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
Most views
  The best Prog... 572687
  Tutorial Requ... 485717
  Web Scraping ... 437144
  Newbie with P... 380079
  Thread remain... 351375
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8174
snippsat 7352
deanhystad 6857
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
homerpalmer Today
aihancaiji31 Today
gmonroe Today
Tharindu Today
thomasjoe604 Today

User Panel Messages

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