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,954
» Latest member: Perry
» Forum threads: 38,727
» Forum posts: 175,526

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 37 Guest(s)
Bing, AOL, AOL, Applebot, Google, Facebook

Latest Threads
extracting data from a us...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 1
» Views: 75
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
7 hours ago
» Replies: 3
» Views: 147
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
9 hours ago
» Replies: 0
» Views: 343
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 02:48 PM
» Replies: 10
» Views: 29,356
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,403
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 280
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Sep-23-2025, 03:29 AM
» Replies: 2
» Views: 727
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 924
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,186
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,392

 
  json.dumps save some unicode chars as code, not char
Posted by: buran - Aug-02-2018, 03:56 PM - Forum: General Coding Help - Replies (1)

I use

with open('docs_new.json', 'w') as f:
    f.write(json.dumps(my_json, indent=2))
to write a json object to a file. Some chars ..... More

Print this item

  Completing Action when CheckBox is Checked
Posted by: Anysja - Aug-02-2018, 03:48 PM - Forum: GUI - Replies (2)

text1 = Checkbutton (root, text = "Text")
text1.place(x = 100, y = 290)

if text1.isChecked():
print("Hi")

This is the code I am trying..... More

Print this item

  Is the better way to save data on mysql?
Posted by: pymatt - Aug-02-2018, 01:26 PM - Forum: Code sharing - No Replies

Im trying to save the data scraped to mysql but i have this issues

no more support for MySQLdb, i have to use

[python]import pymysql
pymysql.install..... More

Print this item

  Let me understand
Posted by: jyotirmoy144 - Aug-02-2018, 11:07 AM - Forum: General Coding Help - Replies (4)

[python]

response = 'Y' or 'N'

answer = "Left"
if answer == "Left":
print "This is the Verbal Abuse Room, you heap of parrot droppings!"

..... More

Print this item

  png porblem in python3
Posted by: eufe - Aug-02-2018, 10:40 AM - Forum: GUI - Replies (6)

Hello:
Sorry for my bad english.
I am a beginner of python.
I have made an application in python3 in windows 10 with tkinter and it works perfectly..... More

Print this item

  Implementing tk.after
Posted by: zukochew - Aug-02-2018, 09:33 AM - Forum: GUI - Replies (5)

Hello all,
I have difficulty implement tk.after command into my code.
I heard tk.after does not freeze the program, so I intend to use it.

Here is..... More

Print this item

  Flask, When the associated foreign key is the same, it is a question of setting a uni
Posted by: passion044 - Aug-02-2018, 08:29 AM - Forum: Web Scraping & Web Development - No Replies

The flask, sqlalchemy is a question.

When business_idx is the same as foreign key,

In the same case, I would like to make the duplicate name uni..... More

Print this item

  min(list) ..?
Posted by: zuzulic - Aug-02-2018, 08:23 AM - Forum: General Coding Help - Replies (3)

Hi guys,

I have a little question. Hopefully that somebody can help me :) :
If I have this list:
L=['13', '2', '3', '3', '5', '7']
min(L) return..... More

Print this item

  How to plot data to the same figure for every run?
Posted by: chry5ler - Aug-02-2018, 08:20 AM - Forum: Data Science - Replies (3)

How to plot data to the same figure for every run?

Hi

I wonder how it is possible to plot data to the same figure in python for every run..... More

Print this item

  Please let me understand
Posted by: jyotirmoy144 - Aug-02-2018, 07:00 AM - Forum: General Coding Help - Replies (3)

[python]def clinic():
print "You've just entered the clinic!"
print "Do you take the door on the left or the right?"
answer = raw_input..... More

Print this item

  Varclut in python
Posted by: Scott - Aug-02-2018, 05:47 AM - Forum: General Coding Help - Replies (1)

Hi everyone,

We use SAS at work and there is a function in SAS that is called varclus. It uses PCA and treats the variables as dimensions and puts ..... More

Print this item

  Functions to make an image zoom in until a response is made
Posted by: sawilliams - Aug-02-2018, 05:17 AM - Forum: General Coding Help - Replies (1)

Hello,

I am inexperienced with python and coding in general. I am currently completing my PhD in cognitive neuroscience, and would like to program ..... More

Print this item

  Problem with interactive python prompt
Posted by: Groot_04 - Aug-02-2018, 04:34 AM - Forum: General Coding Help - Replies (4)

Hi, I am new to Python and just learning. After defining a function and adding a """multi-line comment""", there is no >>> showing the beginning of n..... More

Print this item

  how to terminate all the processes in C
Posted by: py2exe - Aug-02-2018, 04:31 AM - Forum: General Coding Help - No Replies

win 7 I have used C to write a project, and compile it to dll to be used in a big program writing with python.After finished using the DLL, although I..... More

Print this item

  Why Bing suddenly dropped index of website?
Posted by: thaopham - Aug-02-2018, 04:29 AM - Forum: Bar - Replies (1)

Why Bing suddenly dropped index of website? My website indexed in Bing, after some days it dropped index of my website, i dont why? please suggest som..... More

Print this item

  How does this code work?
Posted by: DarthDobber - Aug-02-2018, 12:33 AM - Forum: General Coding Help - Replies (1)

So I would consider myself just above a newbie. I know enough to get myself into trouble.

Anyways, I was looking into messing around with threading ..... More

Print this item

  Trying to subtract datetime, getting error: TypeError: unsupported operand type(s) fo
Posted by: kneesarethebees - Aug-01-2018, 10:28 PM - Forum: General Coding Help - Replies (1)

Hi there

From my understanding, you can use the

import datetime
module to subtract two different datetimes. But when I try to exec..... More

Print this item

  How does pathlib.Path.rename work?
Posted by: wavic - Aug-01-2018, 09:45 PM - Forum: General Coding Help - Replies (7)

I want to write a small script for a friend who has a bunch of images restored after deletion ( 50 gigs ) and I'm trying to use the pathlib module for..... More

Print this item

  Python to update XML SubElement
Posted by: emersonivo - Aug-01-2018, 08:48 PM - Forum: General Coding Help - Replies (3)

Hi all,

I am looking for this help everywhere in the past days without success and I hope someone here can share some knowledge.
In the XML data b..... More

Print this item

  unexpected character after line continuation character error
Posted by: newbie - Aug-01-2018, 08:13 PM - Forum: Homework - Replies (10)

hi
im learning python for about 5 minutes now and trying to run python from a windows terminal(giving the directory to the termminal so the terminal f..... More

Print this item

  Text File Reference and Compile
Posted by: rsbrock20 - Aug-01-2018, 03:54 PM - Forum: General Coding Help - Replies (2)

Hello, I am new to python and was wondering how I would reference a text file (on the left) and compile it into the specific arrangement that you see ..... More

Print this item

  Installing pygal under Ubuntu 18.04
Posted by: ybeco - Aug-01-2018, 02:20 PM - Forum: General Coding Help - Replies (25)

Hi

I discovered the pygal library thanks to your site:
https://python-forum.io/pages/interprete[url=https://python-forum.io/thread-11937.html]..... More

Print this item

  Compare Two Values in the Same Dict
Posted by: malonn - Aug-01-2018, 02:07 PM - Forum: General Coding Help - Replies (6)

Code:
[python]reg_key = 'SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\NetworkList\\Profiles'
if ctypes.windll.shell32.IsUserAnAdmin():
with..... More

Print this item

  Select in Multi Index Pandas
Posted by: diego_last - Aug-01-2018, 12:56 PM - Forum: Data Science - No Replies

Hi, I have a table qith this structure:

IdP IdC idE
1 1 1
1 1 4
1 1 4
1 1 5
2 3 2
2 3 1
2 3 2
2 3 2..... More

Print this item

  request.form[ Dynamic Value]. How to?
Posted by: KirkmanJ - Aug-01-2018, 12:14 PM - Forum: Web Scraping & Web Development - No Replies

Just a quick one.

If i had a dynamically created table which i plan to use to input more information to a FLASK SQLALCHEMY database.

And the selec..... More

Print this item

  Creating An Alert Tone through a python gui on chromium.
Posted by: Fluffyyyzzz - Aug-01-2018, 11:37 AM - Forum: GUI - Replies (1)

Good day,

I am busy working for a company that uses Raspberry Pi's with Raspbian. We are using Chromium and a Python Gui to view a dashboard. The ..... More

Print this item

  multiple instances
Posted by: kerzol81 - Aug-01-2018, 08:29 AM - Forum: General Coding Help - Replies (2)

Hello,

Could you please help me out a bit. Basically I'm doing a command line monitoring tool for my Axis cameras. I put a while loop in the init m..... More

Print this item

  Key Error in Python
Posted by: Nirmal - Aug-01-2018, 07:12 AM - Forum: General Coding Help - Replies (12)

The below script i have to compare Test-red vs Test-blue and find the difference. .Test-red and Test-blue are kept in "output.txt" . output.txt conten..... More

Print this item

  Using pandas, index error
Posted by: fyec - Aug-01-2018, 07:04 AM - Forum: Data Science - Replies (1)

I am trying to round numbers, if their decimal numbers end with (125, 375, 625, 875), I replace them with (25, 25, 75, 75). My code is:

[python]imp..... More

Print this item

  Oracle Error in Python
Posted by: amitjain78 - Aug-01-2018, 06:48 AM - Forum: General Coding Help - Replies (1)

Hi,
I am writing an oracle query in python(pycharm editor) and in that I am joining 2 tables with a single table.One via inner join and other using ..... More

Print this item

  csv file saving problem
Posted by: 7vinBB - Aug-01-2018, 05:55 AM - Forum: General Coding Help - Replies (1)

[python]import csv


def save_users_csv(new):
locals()
users_file = open(r'C:\Users\patri\PycharmProjects\air_traffic_control_system\user..... More

Print this item

  [python]Problem in creating menu[/python]
Posted by: yamoon - Aug-01-2018, 05:44 AM - Forum: GUI - Replies (10)

[python] I've saved the menu details in a dictionary, then I was trying to call it to create menu by using loop but its not working, can any body here..... More

Print this item

  How to detect semantic errors with numbers more complex than integers?
Posted by: RedSkeleton007 - Aug-01-2018, 03:36 AM - Forum: General Coding Help - Replies (1)

I've wrote a program that calculates a the average MPH speed of a race whose distance is measured in kilometers by default. My program runs, but I can..... More

Print this item

  functions in C
Posted by: Skaperen - Aug-01-2018, 03:02 AM - Forum: News and Discussions - No Replies

people can write functions for Python in C. is this different than, or the same as, using the ctypes module? if different, is it easy to made..... More

Print this item

  I've Wanted to do This Since College
Posted by: ichabod801 - Aug-01-2018, 02:25 AM - Forum: Bar - Replies (1)

So I'm working on some game programming. Nothing fancy, mind you. One of the games I have working is Klondike (Solitaire). Now, if you've ever played ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  extracting data from a us... 1 hour ago Perry Pedroski55 General Codin...
  [Tkinter] how to export a... 7 hours ago RonR Pedroski55 GUI
  Is the interpreter that c... 9 hours ago helendamdam helendamdam General Codin...
  pip install requests does... Yesterday, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
Most views
  The best Prog... 576845
  Tutorial Requ... 499346
  Web Scraping ... 440625
  Newbie with P... 384601
  New Users Int... 368537
Most reputation
buran 581
snippsat 508
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+ 12088
buran 8176
snippsat 7367
deanhystad 6895
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Perry Today
bianchiluca116 Yesterday
Jorgecog Yesterday
adamsmith12 Yesterday
Ronny Yesterday

User Panel Messages

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