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,626
» Latest member: ChauHaiCim9904
» Forum threads: 38,637
» Forum posts: 175,063

Full Statistics

Online Users
There are currently 324 online users.
» 0 Member(s) | 315 Guest(s)
Applebot, Google, Bing, Baidu, Facebook

Latest Threads
List[] in Python needs so...
Forum: Game Development
Last Post: DeaD_EyE
4 hours ago
» Replies: 3
» Views: 364
Web scraping confusion
Forum: Web Scraping & Web Development
Last Post: AlluminumFoil
7 hours ago
» Replies: 4
» Views: 1,849
Problem Converting Tradin...
Forum: General Coding Help
Last Post: wallneradam
10 hours ago
» Replies: 2
» Views: 2,763
2D-Cube-Tic-Tac-Toe
Forum: Game Development
Last Post: barrelmarble
10 hours ago
» Replies: 1
» Views: 1,866
PyQT5 Thread crashes afte...
Forum: GUI
Last Post: Axel_Erfurt
Yesterday, 08:17 PM
» Replies: 2
» Views: 3,067
Unable to install pygame ...
Forum: Game Development
Last Post: Thatedge
Yesterday, 08:09 AM
» Replies: 2
» Views: 2,085
can't use pyrepl: bad mag...
Forum: News and Discussions
Last Post: Plyth
Yesterday, 05:53 AM
» Replies: 2
» Views: 242
Setting AST node lineno c...
Forum: General Coding Help
Last Post: voidtrance
Jun-24-2025, 02:10 PM
» Replies: 5
» Views: 500
[SOLVED] Let user search ...
Forum: GUI
Last Post: deanhystad
Jun-24-2025, 02:04 PM
» Replies: 3
» Views: 199
color names
Forum: General Coding Help
Last Post: DeaD_EyE
Jun-24-2025, 08:10 AM
» Replies: 9
» Views: 199,395

 
  Recursion exit | DFS
Posted by: BeerLover - May-28-2017, 10:29 PM - Forum: General Coding Help - No Replies

Dear all,

I would very much appreciate some help with the code. It is supposed to find a quickest path towards ".". Like in the game "PacMan". It w..... More

Print this item

  Poker Dice while loop
Posted by: gullidog - May-28-2017, 07:48 PM - Forum: General Coding Help - Replies (2)

I am not sure why my while loop is broken, any help would be greatly appreciated.


[python]#This program will simulate a poker dice game.
import ..... More

Print this item

  Putting GPS data into a file
Posted by: kendias - May-28-2017, 06:56 PM - Forum: General Coding Help - No Replies

my question here
I am trying to input data that streams from a GPS module into a file. The file locations.csv opens OK but stays blank with no data ..... More

Print this item

  Pygames image
Posted by: Strofix - May-28-2017, 04:44 PM - Forum: Game Development - No Replies

Hi , to begin sorry for my english he is not good .


Is a script . I want to add a image (Representing an enemy) which would move randomly. But I..... More

Print this item

  GUI Webbrowser
Posted by: zarnav - May-28-2017, 04:37 PM - Forum: GUI - Replies (2)

Hey guys!

Just a quick question here for you.

I am thinking in creating my own "management center" in python, basically an app that would contro..... More

Print this item

  Adding Parameters to an API Request
Posted by: Bass - May-28-2017, 03:36 PM - Forum: General Coding Help - Replies (4)

Hi,

Could someone kindly advise on how to add a parameter to an API request, this maybe using curl, but I am unsure of how to do this.

I am usin..... More

Print this item

  Google Calendar & Python
Posted by: MeeranRizvi - May-28-2017, 09:01 AM - Forum: General Coding Help - Replies (2)

Hello Guys,
In this python script i am going to sync my google calendar events to the script.
I have gone through the setup of the API, I know that ..... More

Print this item

  Using Python to read external files
Posted by: beginnertoday - May-28-2017, 08:22 AM - Forum: General Coding Help - Replies (2)

Hi, I'm a beginner at coding. I had a query regarding how an external text file (like an .txt file or even a .py file saved on the hard drive of my co..... More

Print this item

  Convert py2exe
Posted by: daltorya19 - May-28-2017, 05:26 AM - Forum: General Coding Help - Replies (6)

I need to make this an exe with pyinstaller It's not working for me so what I'm really looking for is for someone to do it for me, I've looked everywh..... More

Print this item

  how to make class and instance method (multiple decorator) ?
Posted by: harun2525 - May-27-2017, 10:32 PM - Forum: General Coding Help - Replies (7)

I want make a method like in the following example

[python]

class foo():
   
   @classmethod
   @instancemethod # problem:NameError: name 'in..... More

Print this item

  Ideas for creating a function
Posted by: Ganjena - May-27-2017, 08:57 PM - Forum: General Coding Help - No Replies

Hi

I would like to make a program where a user can copy and paste various items from a game which would include amounts of these items into my prog..... More

Print this item

  Type consistency cross-application via UDP
Posted by: to_the_sun - May-27-2017, 07:09 PM - Forum: Networking - Replies (6)

When sending data from Max/MSP to Python via UDP all I wind up receiving on the other side is stuff that looks like this:

b'float\x00\x00\x00,f\x00..... More

Print this item

  Python Trading Engine
Posted by: icabero0225 - May-27-2017, 07:00 PM - Forum: General Coding Help - Replies (3)

So I am trying to code a python script to assist me with my stock trading. here's my code so far.
[python]def buy():
   datr = float(input("Daily AT..... More

Print this item

  Can't make the turtle walk..
Posted by: Turry - May-27-2017, 06:16 PM - Forum: Game Development - Replies (3)

I made this game that there is a turtle and you can make walls using mouse1, delete them using mouse2 and "command" the turtle to walk with scroll cli..... More

Print this item

  mysql.connector - incorrect integer value
Posted by: Milo - May-27-2017, 09:22 AM - Forum: General Coding Help - Replies (3)

Hi all,

I've been playing around with mysql.connector and trying to insert data into a mysql database. When using the %s or %d syntax I receive a "..... More

Print this item

  columnize.py
Posted by: Skaperen - May-27-2017, 08:00 AM - Forum: Code sharing - Replies (1)

here is a "first working" case of my class to tightly columnize output.  as a command/program it will columnize STDIN to STDOUT.  this is just a first..... More

Print this item

  Dazed and confused...
Posted by: RodNintendeaux - May-27-2017, 04:57 AM - Forum: General Coding Help - Replies (10)

Hello everyone! Rod here with a new account saying "Hi!" and looking to fix a little problem I am having as I setup to learn this new programming thin..... More

Print this item

  Modules in Python
Posted by: Ewkos - May-26-2017, 05:24 PM - Forum: General Coding Help - Replies (15)

Hello everyone,

i have the following problem with modules and my folder structure:

thats my folder and file structur:

main-folder
-python module 1
..... More

Print this item

  Pyplot line color and spacing/padding
Posted by: metalray - May-26-2017, 08:39 AM - Forum: Homework - No Replies

Dear Python Experts,

I have prepared a chart and just some visual upgrades in mind
I wonder why the chart goes beyond the maximum values given and..... More


Attached Files

Thumbnail(s)
   
Print this item

  str vs repr
Posted by: Skaperen - May-26-2017, 05:22 AM - Forum: General Coding Help - Replies (9)

besides the difference in how they handle strings, is there anything in which str() will handle differently than repr()?  i have the ide..... More

Print this item

  Exception while intalling jupyter notebook
Posted by: bmohanraj91 - May-26-2017, 05:00 AM - Forum: General Coding Help - Replies (3)

my question here

I am trying to install jupyter notebook systems in my linux machine, I checked their website which states

pip3 install jupyter..... More

Print this item

  format String in SQL statement.
Posted by: Steven - May-26-2017, 03:44 AM - Forum: Homework - Replies (9)

Hello everyone. I am having a problem formatting a string. That's what it boils down to. I am using a sglite3 database and looking for a date format i..... More

Print this item

  Trouble with general code flow
Posted by: JCN - May-26-2017, 03:31 AM - Forum: General Coding Help - Replies (1)

As you can see by my crude coding I am a newbie.  I've gotten this far and know my objectives could be achieved by much better coding (last file asked..... More

Print this item

  Pausing a loop with spacebar, resume again with spacebard
Posted by: bigmit37 - May-25-2017, 09:12 PM - Forum: General Coding Help - Replies (10)

I have a loop that opens and closes images.



[python]from PIL import Image
import time
import subprocess
for i in bio:
   p = subprocess.Pop..... More

Print this item

  Basic DC Electronics- Resistors
Posted by: sparkz_alot - May-25-2017, 07:52 PM - Forum: Tutorials - Replies (2)

Seeing an increase recently in Raspberry Pi and Arduino questions, I thought I would dust off the cobwebs and write a simple script in Python about so..... More

Print this item

Bug Priority problem with PyQt5 QMenu() and QSystemTrayIcon()
Posted by: Alfalfa - May-25-2017, 07:38 PM - Forum: GUI - Replies (1)

I made a very simplistic GUI which rely mainly on the status of the system tray icon. Overall it works fine, but there seems to be a problem with the ..... More

Print this item

  How to embed mp3 file with Pyinstaller
Posted by: panoss - May-25-2017, 05:22 PM - Forum: General Coding Help - Replies (2)

I 'm tryin to use an mp3 in my app.
This is how:
[python]
def _response_to_alert(self):
if getattr(sys, 'frozen', False):
# we are running ..... More

Print this item

  Nested Loop to Generate Triangle
Posted by: Babbare - May-25-2017, 04:13 PM - Forum: Homework - Replies (12)

I need the triangle to be in reverse. The assignment requires a nested loop to generate a triangle with the user input of how many lines.

Currently..... More

Print this item

  Graphic of total different connection opened by one ip (per seconds) by time
Posted by: FoxModem56k - May-25-2017, 03:27 PM - Forum: General Coding Help - No Replies

Graphic of total different connection opened by one ip (per seconds) by time (slowloris attack)

I have a network dump (PCAP file) from a "conversat..... More

Print this item

  How can I get Colors of current GTK theme?
Posted by: ondoho - May-25-2017, 02:40 PM - Forum: GUI - Replies (2)

Hello,
On ArchLinux, I'm trying to get the Colors of the current GTK3 theme, but without opening a gtk window.
All I want the script to do is g..... More

Print this item

  How to find the cosine of an angle
Posted by: sylas - May-25-2017, 01:23 PM - Forum: General Coding Help - Replies (6)

my question here:Hi all. I have not received my book yet, so I am unable to go on.

[python]#file2.py
#module
# Import built-in module math
impor..... More

Print this item

  Jython for music
Posted by: RoseRodent - May-25-2017, 08:57 AM - Forum: General Coding Help - No Replies

Background My apologies if this isn't even python! I have been trying to look up what the differences and similarities are and people tell me t..... More

Print this item

  National Flood Hazard Layer (NFHL) files extraction
Posted by: sirgeo - May-25-2017, 04:53 AM - Forum: Homework - Replies (2)

Noob looking for some guidance with the following task.

Use Python to extract flood hazard info from ..... More

Print this item

  Mini-Web Framework
Posted by: nilamo - May-25-2017, 03:34 AM - Forum: Code sharing - Replies (12)

So I've had an idea running around my head for a while, and I decided to finally do something about it and try it out.  The basics of the mini framewo..... More

Print this item

  splitting or parsing control characters
Posted by: Skaperen - May-25-2017, 02:57 AM - Forum: General Coding Help - Replies (19)

i would like to do a split on a string (including bytes) such that it splits control characters as classes.  for example if a string is [inline]'foo\n..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  List[] in Python needs so... 4 hours ago Codingdesigner12 DeaD_EyE Game Developm...
  Web scraping confusion 7 hours ago keifin AlluminumFoil Web Scraping ...
  Problem Converting Tradin... 10 hours ago kralxs wallneradam General Codin...
  2D-Cube-Tic-Tac-Toe 10 hours ago freethrownucleus barrelmarble Game Developm...
  [PyQt] PyQT5 Thread crash... Yesterday, 20:17 Suresh Axel_Erfurt GUI
  Unable to install pygame ... Yesterday, 08:09 garthE Thatedge Game Developm...
  can't use pyrepl: bad mag... Yesterday, 05:53 eliastw85 Plyth News and Disc...
  Setting AST node lineno c... 06-24, 14:10 voidtrance voidtrance General Codin...
  [WxPython] [SOLVED] Let u... 06-24, 14:04 Winfried deanhystad GUI
  color names 06-24, 08:10 jimrinaldo DeaD_EyE General Codin...
  Python Install Mager Help 06-24, 04:43 bowens1983 DeaD_EyE News and Disc...
Most views
  The best Prog... 572351
  Tutorial Requ... 485025
  Web Scraping ... 436880
  Newbie with P... 379716
  Thread remain... 351240
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7340
deanhystad 6840
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
ChauHaiCim9904 Today
barrelmarble Today
wallneradam Today
spokedge Today
avilla Today

User Panel Messages

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