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,924
» Latest member: Fobertsmene
» Forum threads: 38,719
» Forum posts: 175,490

Full Statistics

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

Latest Threads
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 2
» Views: 265
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
5 hours ago
» Replies: 7
» Views: 1,548
Python Installation issue
Forum: News and Discussions
Last Post: Dev
5 hours ago
» Replies: 4
» Views: 15,484
New to the field
Forum: News and Discussions
Last Post: Larz60+
8 hours ago
» Replies: 1
» Views: 222
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Today, 02:34 AM
» Replies: 1
» Views: 242
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 01:34 PM
» Replies: 5
» Views: 553
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Yesterday, 06:11 AM
» Replies: 5
» Views: 1,337
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,336
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,037
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,288

 
  subprocess.call change color of shell
Posted by: Aquaplant - Jan-17-2017, 02:11 PM - Forum: General Coding Help - Replies (8)

Hello there,
I am using the package 'subprocess' to call some programs with parameter shell=True. Now I wish to change the color of the produced outp..... More

Print this item

  PROBLEM WITH RUN A PRORAMME
Posted by: ALADDIN_1978 - Jan-17-2017, 01:06 PM - Forum: General Coding Help - Replies (1)

Here is the code

*************************

[python]import codecs 
from math import sqrt

users = {"Angelica": {"Blues Traveler": 3.5, "Broken..... More

Print this item

  Data window
Posted by: Felipe - Jan-17-2017, 11:05 AM - Forum: General Coding Help - Replies (5)

Hi guys,


I have a huge data file that the first two columns are coordinates (latitude, longitude). I look for a way to extract the data window fr..... More

Print this item

  find location of opengl object?
Posted by: hsunteik - Jan-17-2017, 10:59 AM - Forum: General Coding Help - Replies (1)

I use opengl with 3d perlin noise to generate a terrain like minecraft to create a game like minecraft?

How do I find the current coordinate of :
..... More

Print this item

  call by objects problem
Posted by: landlord1984 - Jan-17-2017, 07:51 AM - Forum: General Coding Help - Replies (1)

def f(x,l=[]):
    for i in range(x):
        l.append(i*i)
    print(l) 

f(2)
f(3,[3,2,1])
f(3)
Output:
[code][0, 1]
[3, 2, 1..... More

Print this item

  Python+Selenium+PhantomJS with proxy list
Posted by: technoir - Jan-17-2017, 05:22 AM - Forum: Web Scraping & Web Development - No Replies

In my script i used this method for working PhantomJS with proxy:
[code]service_args = [
   '--proxy=0.0.0.0:3128',
   '--proxy-type=http',
   ..... More

Print this item

  can only concatenate list (not "int") to list?
Posted by: landlord1984 - Jan-17-2017, 04:48 AM - Forum: General Coding Help - Replies (2)

I can do:
[1, 2, 3] + [4, 5, 6]
But I cannot do:

nums=[1, 2, 3]
nums[1:]+nums[0]
TypeError: can only concatenate list (no..... More

Print this item

  OSM - Open Source Mapping
Posted by: Larz60+ - Jan-17-2017, 04:40 AM - Forum: Bar - Replies (7)

Has anyone worked with Open Source Mapping?

Print this item

  Can WYSIWYG Die?
Posted by: micseydel - Jan-17-2017, 01:48 AM - Forum: Board - Replies (25)

I hate WYSIWYG, because it's so misleading. Look at https://python-forum.io/Thread-Python-co...25#pid8325 ..... More

Print this item

  How to extract two data types from a text file and store them as two separate lists
Posted by: banf - Jan-16-2017, 07:03 PM - Forum: Homework - Replies (1)

I'm currently making a program which will compress a user sentence into two variables unique_words and positions. Unique words will be all the unique ..... More

Print this item

  Basic code help
Posted by: crawlinkingsnake - Jan-16-2017, 06:16 PM - Forum: General Coding Help - Replies (2)

Hey there, trying to run a basic Boolean program however I'm having trouble printing one of my options.
I want to print "True" for values equal to 0..... More

Print this item

  List to float
Posted by: Felipe - Jan-16-2017, 02:41 PM - Forum: General Coding Help - Replies (6)

Hi guys,

I have a 3.1 Gb csv file which I try to clean of bad data. So, I wrote the code below:

[python]
#!/usr/bin/env python3

import csv
..... More

Print this item

  eport selections to dic
Posted by: mintsilver - Jan-16-2017, 01:06 PM - Forum: GUI - No Replies

i want to export the selections from dropdown to dic like:

ANSWER_KEY = {0:3,1:1,2:6,3:4,4:4,5:4,6:4,7:4,8:4,9:4}
i try to used..... More

Print this item

  Error in PyScripter
Posted by: Pascal15 - Jan-16-2017, 11:52 AM - Forum: General Coding Help - Replies (3)

I started to learn Python and wrote my first program in PyScripter

# coding: utf-8
print ("Hello!")

But when I press "Run" button it shows me this e..... More

Print this item

  Pythonista/Pythoneer
Posted by: ichabod801 - Jan-16-2017, 11:28 AM - Forum: Bar - Replies (11)

I used to prefer pythonista, because I thought it sounded more revolutionary. But then I realized it sounded like someone who writes scripts to serve ..... More

Print this item

  Error with Pyinstaller Modules
Posted by: sym - Jan-16-2017, 10:33 AM - Forum: Data Science - Replies (9)

Hey, I'm trying to create a bundled executable via PyInstaller for an assignment. Already tried multiple re-installations of Python but still PyInstal..... More

Print this item

  this is inconsitent with documentation
Posted by: Skaperen - Jan-16-2017, 05:49 AM - Forum: General Coding Help - Replies (4)

the strftime() method has a single common documentation for the two modules (datetime and time) it is found in, but ...
[output]lt1/forums /home/foru..... More

Print this item

  Python code with serial port and global undefined
Posted by: marciokoko - Jan-16-2017, 12:43 AM - Forum: General Coding Help - Replies (13)

I have the following code and I got this error after adding a few ser.close() lines (identified with *** down below):

[quote]
[color=#222222][size..... More

Print this item

  how do I print cost variable on GUI?
Posted by: Doug - Jan-15-2017, 10:30 PM - Forum: GUI - Replies (4)

how do I print cost variable on GUI? it says: cost is not defined. Thank you!

from tkinter import *

class Application(Frame):

    def __init_..... More

Print this item

  program doesn't run.
Posted by: Doug - Jan-15-2017, 07:27 PM - Forum: GUI - Replies (2)

Was watching a tutorial on youtube on how to use OOP in building GUI, but can not run identical code myself.
Error: "in line 27 app = Application() T..... More

Print this item

  HTML5?
Posted by: melakorolo - Jan-15-2017, 07:10 PM - Forum: Bar - Replies (3)

Anyone here worked with HTML5 much yet?

Print this item

  Invalid syntax: string index out of range
Posted by: darkreaper1959 - Jan-15-2017, 06:07 PM - Forum: Homework - Replies (6)

[python]
import time
import sys

# introduction to  the game

print("You are playing the guessing game! To win you must guess the word, within t..... More

Print this item

  Access google sheets like a csv file
Posted by: perttybug - Jan-15-2017, 05:33 PM - Forum: Code sharing - Replies (5)

Hello all,

    I wrote a python library for accessing google sheets based on google's new sheet api v4, named pygsheets.

    Its well documented..... More

Print this item

  New line in pdf?
Posted by: panoss - Jan-15-2017, 07:11 AM - Forum: General Coding Help - Replies (10)

I 'm using reportlab for pdf creation..
My problem is new line, I tried \n and <br/> but failed.
What do you suggest?

Print this item

  pass after a loop is a syntax error???
Posted by: Skaperen - Jan-15-2017, 06:33 AM - Forum: General Coding Help - Replies (5)

i don't believe this should be an error
[output]lt1/forums /home/forums 3> py3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] ..... More

Print this item

  terminal/console geometry
Posted by: Skaperen - Jan-15-2017, 03:34 AM - Forum: General Coding Help - Replies (12)

on linux/unix/posix i can do this:

rows, columns = subprocess.check_output(['stty', 'size']).split()
to get terminal geometry
i..... More

Print this item

  self in functions
Posted by: marciokoko - Jan-15-2017, 02:01 AM - Forum: General Coding Help - Replies (3)

I created a class:

[python]
class AIHome:

def __init__(self):
     self.fetchUpdate();

def fetchUpdate(self):
     self.relayToggle()

d..... More

Print this item

  I don't understand this result
Posted by: Ponomarenko Pavlo - Jan-14-2017, 05:52 PM - Forum: General Coding Help - Replies (3)

>>> f = [].extend(['spam', 32, 44])
>>> type(f)
         <class 'NoneType'>

Print this item

  Function problem
Posted by: garretmorion - Jan-14-2017, 05:17 PM - Forum: Homework - Replies (9)

[color=#242729][size=small][font=Arial,]'m relatively new to python and the only other experience I've had is C++. Whenever I define a function in Pyt..... More

Print this item

  file descriptors
Posted by: Skaperen - Jan-14-2017, 10:13 AM - Forum: General Coding Help - Replies (7)

this will be run in linux.  i have a function that reads from and writes to file descriptors ... the things that are used by os.read() and os.w..... More

Print this item

  Conver to List
Posted by: landlord1984 - Jan-14-2017, 03:27 AM - Forum: General Coding Help - Replies (1)

I am playing to convert a tuple to a list. I thought using list() is simple, but not...What's wrong?


[python]aTuple = (123, 'xyz', 'zara', 'abc')..... More

Print this item

  Create a new list by comparing values in a list and string
Posted by: DBS - Jan-14-2017, 01:37 AM - Forum: General Coding Help - Replies (2)

Hello,

I have elements in a predefined list and a query string.  I would like to check if the query_str has any values in predefined list and if so..... More

Print this item

  How can I make a sentinel value NOT be initialized in a class/method - OOP?
Posted by: netrate - Jan-13-2017, 10:23 PM - Forum: General Coding Help - Replies (2)

I am testing out some basic Object Oriented Programming in Python.  The basics:

  • User enters a name
  • While loop with a sentinel value ..... More

Print this item

  Remove files from a directory
Posted by: pyth0nus3r - Jan-13-2017, 07:39 PM - Forum: General Coding Help - Replies (3)

Hello
Below is an example from a book called Automating the boring stuff with Python.
This code is supposed to deletes all files that end with .txt ..... More

Print this item

  Preparing ground in a designed device
Posted by: Prometheus - Jan-13-2017, 06:03 PM - Forum: General Coding Help - Replies (7)

Hi everyone. 

I am supporting a team creating a concept for a tactile matrix touch pad meant for blind people. 

Could you please offer some guid..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data input while debuggin... 1 hour ago fred1232 deanhystad General Codin...
  New to Python and Pygame 5 hours ago JMcM JMcM Game Developm...
  Python Installation issue 5 hours ago RFHill Dev News and Disc...
  New to the field 8 hours ago Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Today, 02:34 RonR deanhystad GUI
  Select Python comment (#)... Yesterday, 13:34 SpongeB0B snippsat General Codin...
  I'm trying to make a piec... Yesterday, 06:11 Alislugacool MilesWeb General Codin...
  Seeking feedback: dynamic... 09-12, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575538
  Tutorial Requ... 496518
  Web Scraping ... 439624
  Newbie with P... 383232
  New Users Int... 364278
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+ 12087
buran 8174
snippsat 7366
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Fobertsmene Today
jeremyn24503 Today
homataheri Today
Dev Today
RonR Yesterday

User Panel Messages

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