Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,735
» Latest member: zalanthas
» Forum threads: 37,652
» Forum posts: 171,123

Full Statistics

Online Users
There are currently 396 online users.
» 1 Member(s) | 387 Guest(s)
Yandex, Google, Bing, Facebook, Baidu, Apple, AOL, Gribouillis

Latest Threads
Setting Up Python on New ...
Forum: News and Discussions
Last Post: AdamHensley
21 minutes ago
» Replies: 4
» Views: 149
Running powershell comman...
Forum: General Coding Help
Last Post: robertkwild
23 minutes ago
» Replies: 8
» Views: 193
hardware timer raspberry ...
Forum: General Coding Help
Last Post: AdamHensley
1 hour ago
» Replies: 3
» Views: 214
recurring events every sp...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 1
» Views: 41
comtypes: how to provinde...
Forum: General Coding Help
Last Post: zalanthas
2 hours ago
» Replies: 0
» Views: 35
Regex to catch what user ...
Forum: General Coding Help
Last Post: AdamHensley
2 hours ago
» Replies: 26
» Views: 1,015
How to attach a file to a...
Forum: Networking
Last Post: arbiel
3 hours ago
» Replies: 0
» Views: 40
3-d surface plotting
Forum: General Coding Help
Last Post: paul18fr
3 hours ago
» Replies: 10
» Views: 464
Why not use len(alist) in...
Forum: General Coding Help
Last Post: Pedroski55
3 hours ago
» Replies: 0
» Views: 38
Using PyTorch to implemen...
Forum: News and Discussions
Last Post: Larz60+
6 hours ago
» Replies: 1
» Views: 55

 
  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 - No Replies

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

  Coding and IDE
Posted by: prodrumernate - May-24-2022, 07:10 PM - Forum: General Coding Help - Replies (5)

i learn better by writing and doing than just reading.im using sololearn to learn python.i couldnt even write the code for a simple calculator..so i t..... More

Print this item

  FFT - sum of amplitudes
Posted by: frohr - May-24-2022, 05:34 PM - Forum: General Coding Help - No Replies

Hi,
I have 30k samples and I make FFT.
Size of amplitudes in FFT is ok.
But I want make sum of all amplitudes and here I can see wrong number. F..... More

Print this item

Question how to solve `'TypeError: 'int' object is not iterable`?
Posted by: netanelst - May-24-2022, 11:02 AM - Forum: General Coding Help - Replies (2)

[python]
def CSVR():


x52=[""]
x166=[""]
if request.method == 'POST':
f = request.files['file']
l8=range(48,58)
..... More

Print this item

  Python converted EXE not working
Posted by: Rajasekaran - May-24-2022, 10:06 AM - Forum: General Coding Help - Replies (1)

I have created a tool for OCR the content from the TIFF images and its working fine when executing from the source code.
However when executing the s..... More


Attached Files

.py   OCR.py (Size: 765 bytes / Downloads: 130)
Print this item

  using variables with functions imported from different files.
Posted by: Scordomaniac - May-24-2022, 09:29 AM - Forum: General Coding Help - Replies (3)

hey, I'm trying to run a function from a different file in my main file. this isn't working as the function won't load variables across files, how can..... More

Print this item

  Help with TypeWriter Effect in Python Rich
Posted by: Extra - May-23-2022, 09:43 PM - Forum: General Coding Help - No Replies

Hello,

I'm trying to have the text look like it's being typed live on the screen using the typewriter effect. I got it to print to the terminal the w..... More

Print this item

  Detecting float or int in a string
Posted by: Clunk_Head - May-23-2022, 08:39 PM - Forum: General Coding Help - Replies (15)

The str.isnumeric() function is lacking when it comes to detecting floats.
Several sites say to use a try/except to attempt the conversion. I was tau..... More

Print this item

  Python newbie
Posted by: laleebee - May-23-2022, 07:26 PM - Forum: General Coding Help - Replies (2)

Hi all.
A little bit about me: 20 years ago, I worked in house for an investment bank. Despite not having a coding background I ended up using Per..... More

Print this item

  signal anti-aliasing
Posted by: frohr - May-23-2022, 05:18 PM - Forum: General Coding Help - No Replies

Hi,
I am reading signal from ADXL1005 with ADS1256 24bit ADC to Teens4.0.
I have sample rate 30000 and I read 30000 samples.
I have no problem with..... More

Print this item

  Help adding prompt text in a Layout using Rich TUI
Posted by: Extra - May-23-2022, 04:16 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm trying to put my Login Screen inside a Panel or Layout using Rich (Rich Link)[url=https://python-forum.io/thread-37285.html]..... More

Print this item

  [Solved]Make certain columns Un-editable in QtSql
Posted by: Extra - May-23-2022, 03:06 PM - Forum: GUI - Replies (7)

Hello again,

I'm trying to figure out how to make my SellPrice, ID, Quantity, & Date columns Un-editable/read-only when you click on their columns ..... More

Print this item

  Multiple Loop Statements in a Variable
Posted by: Dexty - May-23-2022, 08:36 AM - Forum: General Coding Help - Replies (1)

I'm quite familiar with:

for i in range(n):
	for j in range(n):
		print(i, j)
and
[python]
myVar = [i for i in range(n)]..... More

Print this item

  strategy to troubleshoot what pyinstaller misses
Posted by: hammer - May-23-2022, 01:05 AM - Forum: General Coding Help - No Replies

On linux machine, have an app that incorporates kivy and runs from command line fine. After creating a .spec file and adding some needed datas, trying..... More

Print this item

  Metaprogramming: automating conversions between types
Posted by: Gribouillis - May-22-2022, 09:41 PM - Forum: Code sharing - No Replies

I tend to use more and more unary conversions between types in my programming, so here is a small utility module that I wrote today for composing auto..... More

Print this item

  Get the attributes value with xPath
Posted by: vulturas - May-22-2022, 05:28 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello everyone,

I would like to get the value from the data-score attribute within the <span>-element.
[inline]<span class="index..... More

Print this item

  math.log versus math.log10
Posted by: stevendaprano - May-22-2022, 11:44 AM - Forum: General Coding Help - Replies (10)

math.log(num, 10) is usually, but not always, equal to math.log10(num). In my random testing, when they are differen..... More

Print this item

  How to compile a Python script for a Windows / Linux executable?
Posted by: netanelst - May-22-2022, 10:11 AM - Forum: General Coding Help - Replies (2)

TNX Smile
NATE

Print this item

  Loop row and column + 1
Posted by: Scott - May-22-2022, 07:34 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

I've made an empty 24,31 (24 columns and 31 rows if I've done the numbers wrong) matrix with all 0. I've also created a loop that a mo..... More

Print this item

  is there any tool to convert negative base to int?
Posted by: Skaperen - May-21-2022, 10:48 PM - Forum: General Coding Help - Replies (7)

is there any tool to convert negative base to int?

Print this item

  only print the last folder ?
Posted by: User3000 - May-21-2022, 09:01 PM - Forum: General Coding Help - Replies (4)

hi, I know I can get the name of the last folder using os.path.basename and os.path.normpath.

src_1 = "/storage/emulated/0/Documents/TAX/December_..... More

Print this item

  [Solved]Multiply a number to a DoubleSpinBox
Posted by: Extra - May-21-2022, 08:09 PM - Forum: GUI - Replies (11)

Hello,

I'm trying to make a sellPrice variable that takes in the user's input from the Price Input that I have and multiplies 1.10 to it.

This ..... More

Print this item

  [CPython] Can't run script python
Posted by: VietVH - May-21-2022, 03:32 PM - Forum: General Coding Help - Replies (2)

Hi all,

I have a problem need your help.
Thanks in advance.

1. Context:
I customized source code CPython 3.9.6 (https://www.python.org/downloa..... More

Print this item

  Convert nested sample json api data into csv in python
Posted by: shantanu97 - May-20-2022, 10:47 PM - Forum: General Coding Help - Replies (3)

Want to convert Sample JSON data into CSV file using python. I am retrieving JSON data from API. As my JSON has nested objects, so it normally cannot ..... More

Print this item

  rotating image with Tkinter
Posted by: Frankduc - May-20-2022, 05:37 PM - Forum: General Coding Help - Replies (6)

Hi,

I am trying to rotate images on canvas using Tkinter after() method.

My images dont appear in the window and they dont seem to rotate. I get..... More

Print this item

  Best way to accommodate unknown number of variables?
Posted by: Mark17 - May-20-2022, 05:23 PM - Forum: General Coding Help - Replies (9)

Hi all,

I've run up against this issue a number of times so I thought I'd seek advice on the best way to handle it.

Suppose I have a large data ..... More

Print this item

  Should Python support i suffix for complex numbers as well as j ?
Posted by: stevendaprano - May-20-2022, 10:19 AM - Forum: News and Discussions - Replies (3)

Python supports complex numbers written with the j suffix, e.g. 2.5j.

On Python's bug tracker, ..... More

Print this item

  Kiosk app
Posted by: DPaul - May-20-2022, 06:01 AM - Forum: Bar - No Replies

Hi,
When animals could talk, 'kiosk applications' were also in vogue.
If I have a tKinter app, running on windows 10/11.
What are the best python t..... More

Print this item

  Aligning a image to a template image
Posted by: robrod26 - May-20-2022, 02:02 AM - Forum: Data Science - Replies (1)

I've been researching how to do this with no luck.

I would like to align image 1 to image 2.

Image 1
https://ibb.co/wCsjYZR

Image 2
https:/..... More

Print this item

  auth - URL
Posted by: SUN - May-19-2022, 02:23 PM - Forum: General Coding Help - Replies (2)

Hello everyone sorry to disturb you. I wanna to ask a question about the authentification with an URL. How to judge whether a group of id and password..... More


Attached Files

Thumbnail(s)
       
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Setting Up Python on New ... 21 minutes ago jogl AdamHensley News and Disc...
  Running powershell comman... 23 minutes ago robertkwild robertkwild General Codin...
  hardware timer raspberry ... 1 hour ago trix AdamHensley General Codin...
  recurring events every sp... 1 hour ago jacksfrustration deanhystad General Codin...
  comtypes: how to provinde... 2 hours ago zalanthas zalanthas General Codin...
  Regex to catch what user ... 2 hours ago robertkwild AdamHensley General Codin...
  How to attach a file to a... 3 hours ago arbiel arbiel Networking
  3-d surface plotting 3 hours ago Tuxedo paul18fr General Codin...
  Why not use len(alist) in... 3 hours ago Pedroski55 Pedroski55 General Codin...
  Using PyTorch to implemen... 6 hours ago emmanuelkattouganda Larz60+ News and Disc...
  email address input 7 hours ago jacksfrustration DeaD_EyE General Codin...
Most views
  The best Prog... 531945
  Web Scraping ... 400584
  Tutorial Requ... 384718
  Newbie with P... 324031
  Thread remain... 305762
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 341
deanhystad 315
Most replies
  New Users Int... 433
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11904
buran 8089
snippsat 7151
deanhystad 6363
metulburr 5150
Top referrers
Googlepro 21
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
zalanthas Today
codersdev Today
murmurgeneral Today
ambitionhire Today
emmanuelkattouganda Today

User Panel Messages

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