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,926
» Latest member: goodness4u
» Forum threads: 38,721
» Forum posts: 175,493

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 34 Guest(s)
Bing, Google, AOL, Mojeek, Applebot

Latest Threads
JSHOP.CC, NON VBV CC, SPA...
Forum: Game Development
Last Post: goodness4u
1 hour ago
» Replies: 0
» Views: 10
REACH OUT TO FUNDS RETRIE...
Forum: Game Development
Last Post: shirleyjacobs112
1 hour ago
» Replies: 0
» Views: 5
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 6
» Views: 659
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
10 hours ago
» Replies: 2
» Views: 371
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Yesterday, 11:25 AM
» Replies: 7
» Views: 1,657
Python Installation issue
Forum: News and Discussions
Last Post: Dev
Yesterday, 11:16 AM
» Replies: 4
» Views: 15,588
New to the field
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 08:15 AM
» Replies: 1
» Views: 304
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:34 AM
» Replies: 1
» Views: 345
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Sep-13-2025, 06:11 AM
» Replies: 5
» Views: 1,429
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,395

 
  How to superscript figures?
Posted by: Felipe - Feb-06-2017, 05:56 PM - Forum: Data Science - No Replies

Hi all,

I wrote a function which plots rectangles filled or not. If I use flag == 0 I want rectangles filled, in case of flag == 1 I want only the ..... More

Print this item

  lists.sort() with cmp
Posted by: merlem - Feb-06-2017, 04:47 PM - Forum: General Coding Help - Replies (14)

I wonder how to make sorting with 'cmp' work in Python 2.7.

It's not my case, but as an example, how could I sort sets like
[python]
[Wednesday,..... More

Print this item

  search for a data in my browser via script
Posted by: MeeranRizvi - Feb-06-2017, 02:36 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello guys,
Here i am writing a script which will open my chrome browser and opens the URL www.google.com.
But how to search for a data via script.
fo..... More

Print this item

  Help with plot legends in subplots
Posted by: Felipe - Feb-06-2017, 01:24 PM - Forum: General Coding Help - Replies (2)

Hi guys,

I wrote this code to subplot two graphs:

[python]
f,axarr = plt.subplots(2, sharex=True)
axarr[0].plot(X,Tt,label='Tt')
plt.legend()..... More

Print this item

  Why is there an __init__ statement within the __init__ definition
Posted by: iFunKtion - Feb-06-2017, 12:12 PM - Forum: General Coding Help - Replies (7)

Hi there,

could someone please explain why with this bit of code I have copied, there is a second init statement in the init definition:
[python]..... More

Print this item

  Activate Virtual Environment and Help to get started with Python
Posted by: Adelton - Feb-06-2017, 11:32 AM - Forum: General Coding Help - Replies (4)

Hi There,

I am  new to Python and programming.I am very interested in learning to code in particular with regards to web development using python.I..... More

Print this item

  Scroll bar height is not fixed with Text widget
Posted by: MeeranRizvi - Feb-06-2017, 11:21 AM - Forum: GUI - Replies (2)

Hello Guys,
Here i am creating a GUI like Search engine.The problem what i am getting is the scroll bar is not fixed with Text widget.Even though i u..... More

Print this item

  using qt with classes basic window
Posted by: iFunKtion - Feb-06-2017, 09:50 AM - Forum: GUI - No Replies

Hi there,

really struggling here, so I am going back to basics to try and work out why none of this is working. So I can create a complete applicat..... More

Print this item

  Hello I am new to python
Posted by: jahur - Feb-06-2017, 08:07 AM - Forum: General Coding Help - Replies (6)

Hello,
I am new to python but have 5 years experience in developing php application, websites, modules, plugins. I want to know how do I get started...... More

Print this item

  example code for a coroutine generator
Posted by: Skaperen - Feb-06-2017, 04:52 AM - Forum: Code sharing - Replies (3)

i was looking for a simple example of a python coroutine generator.  i did not find one.  so i wrote my own, calling it gener.py.  this is [i]n..... More

Print this item

  Math opperators
Posted by: Zman350x - Feb-06-2017, 04:08 AM - Forum: General Coding Help - Replies (2)

can I calculate sin, cos, and tan in python if so how and if not are there any modules I can download and import into my project??? Smile

Print this item

  Ask help for utf-8 decode/encode
Posted by: forfan - Feb-06-2017, 01:57 AM - Forum: General Coding Help - Replies (12)

Hello, I am new here in this forum. 

I am current working on a python program manipulating a Mysql database.

The database is set as utf-8-bin, I..... More

Print this item

  Cmd Module + raw_input tab [complete
Posted by: ruggierom - Feb-05-2017, 10:25 PM - Forum: General Coding Help - Replies (1)

Hello Everyone!

I am new here, and fairly new to python, and I must say I've been missing out for so long.

System: Python 2.7, Cmd Module, OSX...... More

Print this item

  Why does it return error?
Posted by: Ponomarenko Pavlo - Feb-05-2017, 08:01 PM - Forum: General Coding Help - Replies (2)

[python]
from tkinter import *
root = Tk()
root.title('First stage')
root.geometry('600x400')
Button(root, text = '1', width = 5, height = 3, bg ..... More

Print this item

  Please use code tags
Posted by: Larz60+ - Feb-05-2017, 07:20 PM - Forum: Board - Replies (28)

My most common post

Print this item

  Why can't this code work.
Posted by: sexualpanda - Feb-05-2017, 06:14 PM - Forum: Homework - Replies (2)

Sorry for not using the correct python terminology I'm new to this. 

Every time I run this code 

[python]
x=0

def phone():
    if brand =='..... More

Print this item

  question regarding OOP
Posted by: Doug - Feb-05-2017, 04:44 PM - Forum: General Coding Help - Replies (3)

I have a piece of code that is structured as a Class object "A". Then I have GUI code which is also structured as a Class object "B". How I possibly c..... More

Print this item

  Can Pygame import and export SVG?
Posted by: OnisionTheOninonBoy - Feb-05-2017, 01:16 PM - Forum: General Coding Help - Replies (5)

I am making a Vector Graphics game.

Print this item

  How to extract (x,y) coordinates of the boundary of a .tif image?
Posted by: Pythonista - Feb-05-2017, 07:43 AM - Forum: General Coding Help - Replies (23)

I want to get the (x,y) coordinates of the boundary of this TIF image - goo.gl/Uai8lR

I am using Python notebook in Anaconda distribution. I just n..... More

Print this item

  Very first Python program generates a syntax error
Posted by: n8ves - Feb-05-2017, 02:42 AM - Forum: General Coding Help - Replies (2)

I typed in my first Python program (Hello World!) EXACTLY as it appeared in print.

[python]
#! /usr/bin/python

print "Hello World!"

[/python..... More

Print this item

  pip --download-cache
Posted by: Skaperen - Feb-05-2017, 02:00 AM - Forum: News and Discussions - Replies (1)

the man page for pip describes a command option --download-cache <dir> as "Cache downloaded packages in <dir>.".  but this optio..... More

Print this item

  Want a solution to this
Posted by: Shazily - Feb-05-2017, 12:44 AM - Forum: Homework - Replies (10)

Hi,
Please I am having problem to create this project.

Create a class called ShoppingCart.
Create a constructor that takes no arguments and sets ..... More

Print this item

  'NoneType' object has no attribute error, when using Kivy Screens
Posted by: chelovek - Feb-04-2017, 09:37 PM - Forum: General Coding Help - Replies (3)

I'm working on a multi-screen Kivy app. This is a simplified version, but the basic functionality is that a user should be able to drag files to three..... More

Print this item

  Is it possible to have a script call itself?
Posted by: treycoxiii - Feb-04-2017, 09:10 PM - Forum: General Coding Help - Replies (12)

Hi everyone I am trying to write a very very simple python script that opens up a .py file on my desktop using import os

this is what the script lo..... More

Print this item

  Can Python program soundfonts?
Posted by: OnisionTheOninonBoy - Feb-04-2017, 08:58 PM - Forum: General Coding Help - Replies (1)

Do I need to use audacity for the samples?Or can I just make a sound in Python with just my bare hands?Can I make VST instruments with Python too?Need..... More

Print this item

  Pythonic way to standardize dates across two excel sheets?
Posted by: maco144 - Feb-04-2017, 06:48 PM - Forum: Data Science - Replies (1)

Hello! I am using pandas and working with one financial excel sheet where I count streaks of consecutive increases or decreases. I loaded everything i..... More

Print this item

  Loop problems
Posted by: yuvalsaias - Feb-04-2017, 01:33 PM - Forum: General Coding Help - Replies (1)

Hello everyone.
im new to python and im trying to make a snakes and ladder game code.
im having troubles as you can see at the code below with the '..... More

Print this item

  What does 1 do in X = np.array(df.drop(['label'], 1))?
Posted by: landlord1984 - Feb-04-2017, 01:15 PM - Forum: Data Science - Replies (2)

X = np.array(df.drop(['label'], 1))
I understand this code is to convert a Pandas's dataframe into a numpy array without a column ..... More

Print this item

  how to create useful neural network program?
Posted by: hsunteik - Feb-04-2017, 08:21 AM - Forum: General Coding Help - Replies (1)

I have learned many neural network tutorial and watched some videos,and i really understand them,but all the tutorial that saw before only teach me ab..... More

Print this item

  leap year program issue
Posted by: jashajmera - Feb-04-2017, 07:20 AM - Forum: General Coding Help - Replies (3)

Hi,

Can someone please help with the following program.

Can't seem to figure out where I am going wrong.

My program executes fine, just ends ..... More

Print this item

  i(*args) statement
Posted by: chelovek - Feb-04-2017, 06:06 AM - Forum: General Coding Help - Replies (2)

Hi,

I'm studying code for a Kivy app and am having trouble understanding a piece of syntax. For context, this is part of an app that lets a user drop..... More

Print this item

  For loop within a for loop
Posted by: tre - Feb-04-2017, 05:21 AM - Forum: Homework - Replies (4)

Python 2.7.10
I can't seem to figure out the way to do this.  Here is the code

[python]
something = "go dumb cat"

words = something.split()
w..... More

Print this item

  NameError:name'build' is not defined
Posted by: hsunteik - Feb-04-2017, 04:50 AM - Forum: General Coding Help - Replies (2)

[python]
class information(object):
        #version 1
        build=1
        majorVersion=0
        minorVersion=1
        bugFixes=0
       ..... More

Print this item

  from string to list to string.
Posted by: mcmxl22 - Feb-04-2017, 03:57 AM - Forum: General Coding Help - Replies (9)

[python]
def splice():
    name = raw_input('Enter name and age.\n> ')
    result = name.split()
    add_comma = result[:1] + [', '] + result[1:]..... More

Print this item

  Globals vs Function
Posted by: mcmxl22 - Feb-04-2017, 12:29 AM - Forum: General Coding Help - Replies (2)

Is using a function like this to define variables ok? 
[python]
def variables(a, b):
    a = something
    b = another

def some_function():
  ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [PyOpenGL] JSHOP.CC, NON ... 1 hour ago goodness4u goodness4u Game Developm...
  REACH OUT TO FUNDS RETRIE... 1 hour ago shirleyjacobs112 shirleyjacobs112 Game Developm...
  Select Python comment (#)... 2 hours ago SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 10 hours ago fred1232 deanhystad General Codin...
  New to Python and Pygame Yesterday, 11:25 JMcM JMcM Game Developm...
  Python Installation issue Yesterday, 11:16 RFHill Dev News and Disc...
  New to the field Yesterday, 08:15 Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Yesterday, 02:34 RonR deanhystad GUI
  I'm trying to make a piec... 09-13, 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...
Most views
  The best Prog... 575589
  Tutorial Requ... 496652
  Web Scraping ... 439661
  Newbie with P... 383289
  New Users Int... 364453
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
goodness4u Today
shirleyjacobs112 Today
Fobertsmene Yesterday
jeremyn24503 Yesterday
homataheri Yesterday

User Panel Messages

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