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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
2 hours ago
» Replies: 3
» Views: 62
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
5 hours ago
» Replies: 3
» Views: 85
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 62
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 96
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,007
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,360
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,548
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 176
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,191
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,436

 
  disposing of buffered output
Posted by: Skaperen - Aug-09-2022, 11:22 PM - Forum: News and Discussions - No Replies

the .flush() method will empty buffered output, but that data actually gets written. [b]how can i dispose of the buffered output and have it [..... More

Print this item

  repeating a range
Posted by: Skaperen - Aug-09-2022, 06:42 PM - Forum: News and Discussions - Replies (5)

a function gets a range as a parameter. this function needs to go through this range many times. the number of times varies depending on other param..... More

Print this item

  how to use mouse to locate pixel co-ordinates
Posted by: greybill - Aug-09-2022, 03:53 PM - Forum: Game Development - Replies (4)

I am new to pygame and wouild like to know if it is possible to click on a game surface and find the x,y co-ordinates of the mouxe click. The co-ord s..... More

Print this item

  Read JSON via API and write to SQL database
Posted by: TecInfo - Aug-09-2022, 02:20 PM - Forum: General Coding Help - Replies (5)

Hello everyone, I'm new to Python and new to the forum.

I'm developing a Python program that accesses an API, this API returns a JSON and this retu..... More

Print this item

  binning_endpoints ->plotly
Posted by: Luis_liverpool - Aug-09-2022, 10:13 AM - Forum: General Coding Help - No Replies

Hi Guys,

I'm struggling with issue related to creating choropleth chart. My list of binning endpoints consist of 10 elements, but my map is present..... More

Print this item

  Generating dynamic dropdown list
Posted by: test - Aug-09-2022, 04:18 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi!
I am new to Flask and am trying to make a webpage with a multiselect dropdown menu which has an option to add more items by the user if it does n..... More

Print this item

  Help in opening and editing an excel workbook from a web-browser
Posted by: test - Aug-09-2022, 02:06 AM - Forum: General Coding Help - Replies (4)

Hi!
I am not sure if this can be done with flask.

I have an excel template and a web-page. What i want is to be able to open a copy of the templat..... More

Print this item

  making a list of labels callable
Posted by: laur3333 - Aug-08-2022, 05:03 PM - Forum: GUI - Replies (4)

Hi,

I'm trying to define 5 labels as a list of labels. The reason I want to do this is that later I can iterate through the labels with a for loop ..... More

Print this item

  I wanted to make a kivy tutorial, but I failed in step one.
Posted by: bert - Aug-08-2022, 12:40 PM - Forum: GUI - Replies (5)

I'm new to python, but am reasonably in c I wanted to do this kivy tutorial "https://www.youtube.com/watch?v=l8Imtec4ReQ&t=1154s" and followed it to t..... More

Print this item

  How i Can Reverse This Code To get the key
Posted by: rachhost - Aug-08-2022, 12:16 PM - Forum: Homework - Replies (7)

Hi can you help me reverse this and get the key.
My apologies if my post goes against the rules.

[python]
#!/usr/bin/env python3
# -*- coding: u..... More


Attached Files

.zip   breakme.zip (Size: 2.41 KB / Downloads: 292)
Print this item

  Speak results from Pywhatkit
Posted by: Extra - Aug-07-2022, 10:42 PM - Forum: General Coding Help - Replies (1)

Hello,

I'm working on my voice assistant and I'm trying to get it to speak the returned results from: [inline]pywhatkit.info(command, lines = 4)[/inl..... More

Print this item

  Switching from tkinter to gtk is difficult!
Posted by: snakes - Aug-07-2022, 09:22 PM - Forum: GUI - Replies (1)

I'm trying to populate a gtkTreeView with data from an sqlite database. I had no problems doing this with ttk.treeview but the same method doesn't see..... More

Print this item

  Unhashable error - Histogram code
Posted by: lsbpython - Aug-07-2022, 03:23 PM - Forum: General Coding Help - Replies (1)

Hello guys!

I want to get the weekday part from each list in the emailtext list and add it to a histogram.

[python]emailtext = [['From', 'steph..... More

Print this item

  read a text file, find all integers, append to list
Posted by: oldtrafford - Aug-07-2022, 02:35 PM - Forum: General Coding Help - Replies (12)

Hello everyone,

I have multiple text files with a lot of lines.
Inside I have numbers separate with space or multiple spaces.
For example :

1 ..... More

Print this item

Sad What did I do wrongly?
Posted by: Tomi - Aug-07-2022, 07:24 AM - Forum: General Coding Help - Replies (1)

It says icon.ico not defined, what should I do? The icon.ico is in the same folder as the script im trying to run.

[python]from tkinter import *
f..... More

Print this item

  faster code for my code
Posted by: kucingkembar - Aug-07-2022, 06:50 AM - Forum: General Coding Help - Replies (19)

hi, sorry for my bad English,
I have code to remove line(s) that do not start with '[' and end with ']':
[python] with open('input.raw') as f:
..... More

Print this item

  Breaking Raycasting loop
Posted by: XavierPlatinum - Aug-06-2022, 11:46 PM - Forum: Game Development - Replies (5)

I have this raycasting code I've been working on. It mostly functions except I can't figure out how to break out of all the loops when the ray hits s..... More

Print this item

Question Keyword to build list from list of objects?
Posted by: pfdjhfuys - Aug-06-2022, 09:56 AM - Forum: General Coding Help - Replies (3)

Hi,

[python] # Code borrowed from geeksforgeeks.com

class geeks:
def __init__(self, name, roll):
self.name = name
..... More

Print this item

  How to sort .csv file test log which item first fail and paint color
Posted by: SamLiu - Aug-06-2022, 02:42 AM - Forum: General Coding Help - Replies (24)

Hi all,
I want to sort csv file find which item was failed(if this column have limit)and paint color for the cell, delete afterward item such as fina..... More

Print this item

  exception handling
Posted by: saisankalpj - Aug-05-2022, 07:49 PM - Forum: Web Scraping & Web Development - Replies (1)

I want to handle exceptions in django.When the debug=True in django,we get a standard error page in html.But my requirement is that the error response..... More

Print this item

  Stacking Problem in a game.
Posted by: HelloTobi22 - Aug-05-2022, 07:40 AM - Forum: General Coding Help - Replies (2)

I'm making a text adventure game as a beginner project and have already run into a problem. I'm making an encounter with an enemy (namely a 'boar') an..... More

Print this item

  loop ( 2 inputs for each loop)
Posted by: brianhclo - Aug-05-2022, 07:31 AM - Forum: General Coding Help - Replies (6)

Hi guys, anyways I can use a loop to do this?
thanks.

[python]ib.placeOrder(es, es_order)
ib.placeOrder(nq, nq_order)
ib.placeOrder(rty, rty_or..... More

Print this item

  loop (create variable where name is dependent on another variable)
Posted by: brianhclo - Aug-05-2022, 07:28 AM - Forum: General Coding Help - Replies (1)

Hi guys, i am new to python. i am coding a buy/sell order instruction for interactive brokers api. Is there a way to simplify the code here?

[pyth..... More

Print this item

  Scraping someone's recent tweets via python UI automation module Clicknium
Posted by: sharmajaafar - Aug-05-2022, 06:16 AM - Forum: Code sharing - No Replies

Requirement Statements
Get someone's recent tweets and save to a CSV file.
We can start this simple beginner process q..... More

Print this item

  how to run a command pipeline and get its result output as a piped file
Posted by: Skaperen - Aug-04-2022, 11:59 PM - Forum: Code sharing - No Replies

this code is a minimal example of how to run a command pipeline and get its result output as a pipe file. that file is binary so its read result will..... More

Print this item

  Help unwinding assignment
Posted by: JamesBrown - Aug-04-2022, 05:38 PM - Forum: General Coding Help - Replies (2)

I am trying to understand the operation of this assignment function:

[python] Iss = (0.0 < tNow < 2.0) * Iin + (tNow >= 2.0 or tNow < 0) * 0 [/pyth..... More

Print this item

  PyMongo error
Posted by: bagou450 - Aug-04-2022, 08:27 AM - Forum: General Coding Help - No Replies

Hello

I do a transfer of a python script from a server to another and i get this error:

ModuleNotFoundError: No module named 'pymongo.server_api..... More

Print this item

  File explorer
Posted by: DPaul - Aug-04-2022, 06:41 AM - Forum: General Coding Help - Replies (9)

Hi,
In a win11 python 10.x environment, I can start the file explorer from within python like so:
[python]import os
def show_explorer(path):
..... More

Print this item

  Whys is asterisk and random variable necessary in these functions?
Posted by: rrowhe4d - Aug-04-2022, 04:03 AM - Forum: General Coding Help - Replies (5)

In this basic Python Tkinter code, I'm trying to bind certain functions to trigger upon either a UI button press or a keyboard key press.

[python]..... More

Print this item

  od_graph_def.ParseFromString(serialized_graph)
Posted by: hobbyist - Aug-03-2022, 05:39 PM - Forum: General Coding Help - Replies (3)

I am using this guy's code: https://stackoverflow.com/questions/4567...to-console
I get..... More

Print this item

Exclamation Weird IndexError (help a beginner)
Posted by: David_F - Aug-03-2022, 07:42 AM - Forum: General Coding Help - Replies (4)

Hello,
When I pass as input an array of shape (15,1) I get:
IndexError: index 15 is out of bounds for axis 0 with size 15

However, when I pass th..... More

Print this item

  Selling gives me ‘Insufficient balance’ error
Posted by: gerald - Aug-03-2022, 04:45 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

When I try to sell it gives me error: APIError(code=-2010): Account has insufficient balance for requested action. Even though I shoul..... More

Print this item

  [SOLVED] Tkinter module not found
Posted by: Milan - Aug-02-2022, 06:51 PM - Forum: General Coding Help - Replies (7)

Hello team,

So I installed tkinter using

pip3 install tk
But when I try to run the following code

[python]import tkinter ..... More

Print this item

  Regex find string then return 10 character after it
Posted by: pyStund - Aug-02-2022, 04:52 PM - Forum: Data Science - Replies (6)

Hi,
I’ve been looking at Regex and regex cheat sheets and can find how to search for a string and then group them but it would be useful for me to be..... More

Print this item

  How to modify python script to append data on file using sql server 2019?
Posted by: ahmedbarbary - Aug-02-2022, 01:23 AM - Forum: General Coding Help - Replies (1)

I need to append data to excel file already exist from table students on SQL Server .

So I need to append data when dbo.fn_FileExists(@FullFilePath..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 2 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 5 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578667
  Tutorial Requ... 509038
  Web Scraping ... 441833
  Newbie with P... 385779
  New Users Int... 375007
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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