15,194 Topics

Member Avatar for
Member Avatar for Tcll

[Click Here](thinking of PyReadLine... anyone know of a library that can color pixels in the console instead of text??)

0
101
Member Avatar for entropic3105
Member Avatar for Ismatus3

hello , I use Tkinter , at the line : `print modelidvar ` in Interface3() function , it prints "" , nothing , without any error message , can i know why plz , here is all the code : # -*- coding: cp1252 -*- # -*- coding: cp1252 -*- …

Member Avatar for vegaseat
0
202
Member Avatar for Liam_1

I'm making a simple text based game in python, which works fine until I activate "debug" mode (in game, with /debug), which is supposed to change this: # # # # # # # # # # # # # . . . . . . . . . . …

Member Avatar for TrustyTony
0
707
Member Avatar for Tiger1

Below are my code lines for computing cosine similarity over a list of values. My goal is to compute cosine similarity for each value in the f-list (f=[[3492.6], [13756.2], [22442.1], [22361.9], [26896.4]]) by taking a value from the list and compute how close in terms of cosine distance the rest …

0
96
Member Avatar for Dan_1

Hello everyone. I'm quite new to Python and Pygame, and programming in general. I've made a few basic games like pong, frogger and asteroids (the last two took me ages, but I learnt a lot doing them!) Anyway, I'd quite like to have a go at making a 2d side …

Member Avatar for JasonHippy
0
1K
Member Avatar for ram619

Hello,I have written this script to telnet from Ubuntu system to windows7 running system. This script goes fine upto login name, then it takes the password but it is not able to process the password. Although it looks as if the password has reached other side but in real it …

Member Avatar for ram619
0
1K
Member Avatar for james.lu.75491856

import turtle def f(): turtle.forward(10) def l(): turtle.left(1) def r(): turtle.right(1) def b(): turtle.back(5) turtle.onkey(f,"Up") turtle.onkey(l,"Left") turtle.onkey(r,"Right") turtle.onkey(b,"Down") turtle.showturtle() turtle.listen() while True: print, EDIT: add `turtle.showturtle()` but STILL doesn't work

Member Avatar for james.lu.75491856
0
2K
Member Avatar for rmad17

I've been trying out python codes looking at the python tutorials at python.org. I've been getting a better idea of it now and the tutorials are very good at teaching practical programming. However, I also want to apply for Python jobs so what a little bit of theoritical information on …

Member Avatar for rmad17
0
313
Member Avatar for hisan
Member Avatar for 3e0jUn
0
1K
Member Avatar for vegaseat

This code snppet uses the wx.lib.filebrowsebutton.FileBrowseButton widget to pick a file, in this case a '.wav' sound file, and plays it with the wx.Sound widget.

Member Avatar for vegaseat
1
1K
Member Avatar for james.lu.75491856

How do you get this: ![78dfa722ac966be9e9aa3a44ef62d566](/attachments/large/3/78dfa722ac966be9e9aa3a44ef62d566.PNG "78dfa722ac966be9e9aa3a44ef62d566") with pythoncard?

Member Avatar for vegaseat
0
108
Member Avatar for oliverven.quilnet

i installed alchemyAPI with python 2.7 on the desktop and it runs perfectly but when i saved the file to a live server whenever i try running the example files on aclemy i got the error. "Syntax Error near unexpected token `('" I checked the syntax python syntax and its …

Member Avatar for Unimportant
0
469
Member Avatar for lockdon

I have a python script that take raw_input, stores in a varible and then uploads the input to a database. Iwant to use javascript to create the web front end for this(which I have) but I need toknow how to tie the two together. Any help would be great

Member Avatar for bgeisel1
0
272
Member Avatar for frenchfrog

Hello ! I'm trying to do a similar thing as http://www.daniweb.com/software-development/python/threads/392697/calling-matlab.m-file-from-python. I managed to have Matlab launch, and run my Matlab file as the GUI of my matlab function is shown on screen. However it only stays on screen for 1 second, and Matlab closes ! import subprocess as sp …

Member Avatar for Gribouillis
0
2K
Member Avatar for SnehalBPatil

Hello I am working on project In django(Python web framework) where I want to call matlab file(.m ) file from the server. I tried subprocess module from the python [CODE]>>> p = Popen("/Applications/MATLAB_R2009a.app/bin/matlab.exe -nojvm -nosplash -nodisplay -r /home/spatil/LineShapeKin_Simulation_4/LineShapeKin_Simulation_4.1/Matlab_code/Simulate.m",stdout=PIPE)[/CODE] But its giving me following error [CODE]Traceback (most recent call last): File …

Member Avatar for Gribouillis
0
2K
Member Avatar for hisan
Member Avatar for TrustyTony
0
61
Member Avatar for chophouse

Is the following possible using Python? 1. Given a directory with 500 emails in it. These are all bounced emails. 2. Have script open 1st email 3. Python extracts the failed email address (from body of email, not header or addressing) 4. Script appends found email address to separate file …

Member Avatar for chophouse
0
177
Member Avatar for entropic3105

This is probably a very commonly asked question but is it possible to make an app with python?

Member Avatar for svf_
0
183
Member Avatar for mgold

I'm a Java programmer for the most part. I'm very familiar with the Python syntax, but I've never used it for big projects. When I started a larger project in python, I found myself confused about where to start in the design process. I think the biggest issue I encountered …

Member Avatar for snippsat
0
178
Member Avatar for entropic3105
Member Avatar for entropic3105

Does anyone have a clue how to fix this and make the program work smoothly? #I've been trying to make a python module called math.py def add(no1, no2): num = no1 + no2 print num def subtract(no1, no2): num = no1 - no2 print num # That all works fine …

Member Avatar for entropic3105
0
338
Member Avatar for clouds_n_things

So I wrote a cool little python script for terminal commands that I get sick of entering. Most of the script is explained in docstrings and comments. Looking for useful terminal commands or things I missed or could have done better. I'm actually quite proud of it. :) #!/usr/bin/env python …

Member Avatar for clouds_n_things
1
314
Member Avatar for Ismatus3

Hello , in a python application i wanted to insert datas to some columns of a table , the columns tha have as name "XS" , "S" , and "M" . i tried this query : `curso1.execute('INSERT INTO donnees (%s) VALUES (%s);',(liste1[i],qtetaillevar[i]))` , but when it compiles it , when …

Member Avatar for Gribouillis
0
266
Member Avatar for pythonforlife

Previously, I was asking about how to segment video files in python. I have solved that problem now and am wondering if it is possible to merge several video dat files in python. Any help would be appreciated!

-1
78
Member Avatar for حسن_3

Hi to all I'm newbie in the python and this is my first program in it. I have created a board that it LEDs can on/off like the checkbox. and a Timeline that has 20 Frames for controlling the animation (Frames are like the RadioButton). Can you help me : …

Member Avatar for حسن_3
0
315
Member Avatar for spowel4

I have a csv file with lines like this example: 14," APPLES, GRANNY SMITH 72 CT usa, Case",101-016,40.00,7/16/2013,7/22/2013 14," APPLES, GRANNY SMITH 72 CT, Each",010-017,0.60,7/16/2013,7/22/2013 I need to do a few things here - I need to remove any surrounding quotes from around fields; I also need to split the …

Member Avatar for Ismatus3
0
229
Member Avatar for Turo1

I have a text file that is listing ip's like below. The text file contains hundreds of entries like below. I need to seperate each entry in the text file and sort them in IP order. How would I go about doing that? 109.77.140.67 - - [30/Jun/2013:07:07:05 -0500] "GET /email/13948staticvoid.gif …

Member Avatar for BearofNH
0
221
Member Avatar for james.lu.75491856

try: from threading import * except ImportError: from dummy_threading import * as threading But `as` gives a syntax error.

Member Avatar for sepp2k
0
56
Member Avatar for pythonforlife

I am working on a program that allows to assemble to merge several video files into one and run as a whole. I have tried finding on the internet but all I can find is merging text files, I am wondering if it is possible to merge video files in …

Member Avatar for rudasi
0
5K
Member Avatar for zachabesh

There seems to be a variety of ways to do this on the net, does anybody have a tested solution? Suggestions to look at various modules and such appreciated. I don't need the full code.

Member Avatar for zarfishan
0
5K
Member Avatar for dilita.mido

(Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to represent customers' bank accounts. All customers at this bank can deposit (i.e., credit) money into their accounts and withdraw (i.e., debit) money from their accounts. More specific types of accounts also exist. Savings accounts, for instance, earn …

0
180
Member Avatar for revellution

Hi everyone! Sorry for the novel but I don't want to waste anyone's time by not explaining what I have already tried before they try it too... So I just installed Blender which requires Python 2.6 but I'm learning Python 3.1 at the moment. I've never programmed before but I …

Member Avatar for jordanrkaufman
0
460
Member Avatar for dilita.mido

[Click Here](http://www.)(Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to represent customers' bank accounts. All customers at this bank can deposit (i.e., credit) money into their accounts and withdraw (i.e., debit) money from their accounts. More specific types of accounts also exist. Savings accounts, for instance, …

Member Avatar for Gribouillis
-2
246
Member Avatar for Ismatus3

Hello , I'm working to build a programme that connects to MySQL database using Tkinter .In a step , i wanted to create dynamicly a number of entries widgets ( here : tailles_entry[i] ) depending on the number of elements of a list ( here liste1 ) . I could …

Member Avatar for Ismatus3
0
5K
Member Avatar for rom.

Hi there, I need a simple socket server which will echo a client message to all connected clients. I've found this easy py script below, but it only echos the string to the client that sent the message. Any way to mod this so that it will send the message …

Member Avatar for silver.moon.37819
0
2K
Member Avatar for nutrion

All, I have a personal script that I'm trying to write, and I've run into a small problem. The problem is that I want to be able to support a '-s' argument no matter where the argument is. I also want that argument to be allowed more than once. For …

Member Avatar for Gribouillis
0
208
Member Avatar for edward.okech.5

def edward_okech(): """ An introduction of my self.""" print ' I am a newbiee to this website and python.' print ' I am from Kenya, Africa.' print 'Am here to get more insight on python and other relevant technologies' print 'Thank you' edward_okech()

Member Avatar for happygeek
1
121
Member Avatar for Tcll

[Click Here](hey there everyone... :) I need some help with an external runtime interface with PyQt... here's my current code: import API API.init() #show the Qt window _init_(depth) #(this module): print text to both the console and the Qt window (checking for updates to API) API.run(files) #take over the Qt …

0
137
Member Avatar for robotakid

Hey there! I'm currently trying to get my first text-adventure-game in python started,and I wanted to import some features that are totally unnecessary. just for the lulz. So,I want to start a timer,that starts when the game starts,and ends,when the player is dead or won the game. I want it …

Member Avatar for Gribouillis
0
729
Member Avatar for stealthless

Hello, I'm trying to get my program running but I ran into an error. When I want to type a block of text on a new line, I get this error below: AttributeError: 'str' object has no attribute 'append' What am I suppose to adjust in order to fix it? …

Member Avatar for PsychicTide
0
240
Member Avatar for stealthless

Hi, I'm trying to prompt the user to enter a block of text until he/she types EOF on a separate line by itself. After that, the program should present him/her with a menu. When I go to Option 1, it only prints out EOF and not everything that was typed …

Member Avatar for PsychicTide
0
420
Member Avatar for robotakid

Hello everyone, I just started with the book 'Learning Python the hard way' by Zed A. Shaw,and I have to say that it is really fun to learn code. I thought that it would be a problem because I'm 15,but I'm understanding it pretty well so far. Anyway,enough of the …

Member Avatar for TrustyTony
0
371
Member Avatar for stealthless

I'm a Python noob trying to make a program where the user will enter as many integers as they want and have the program calculate the total sum. They have to type the word "done" to execute the sum calculation. When I ran my program, I tped in 'done' and …

Member Avatar for edward.okech.5
0
228
Member Avatar for stealthless

This is **Python** language. Hello, I'm trying to make a program where the user enters his/her initials followed by a block of text. After that, the program will print out the number of times his/her initials showed up in the block of text. For example, if my initials are VKL, …

Member Avatar for edward.okech.5
0
256
Member Avatar for epicSHOOTER236

How would i make python read a text file and find something then read a certian number of lines below it i.e if you had: card 1: ball red it need to find card 1:, then it needs to read the line below (ball) and set it to a string …

Member Avatar for epicSHOOTER236
0
281
Member Avatar for stealthless

Hello, I'm a starter in Python and I need help. I'm trying to ask the user to input as much text as he/she likes until he/she types EOF (end of file) on a separate line. Once he/she does, the program should end. I started on my code and below is …

Member Avatar for slate
0
543
Member Avatar for alienwave

How can write these fuctions differently ? def computeVoltages(Vs, TC, tValues): return [Vs * (1 - e ** (-t / TC)) for t in tValues] def computeTimeValues(TC, intervals): time = [] width = 5 * TC / intervals for i in range(intervals + 1): time.append(i * width) return time

Member Avatar for alienwave
0
146
Member Avatar for wolf29

I have a program that takes csv values, parses the content and inserts it in an sqlite3 database. I am using sqlite3 to save on space and to make the py scripts a little more portable. The next refactoring may well need to have postgresql or mysql to deal with …

0
176
Member Avatar for slamshuffle

Hi all, I'm quite new to Python (and programming in general) and I'm a bit confused about how to implement inheritance in an assignment I'm doing at the moment. The basic gist is: we're supposed to make a program that can record stock items for a company. We're to make …

Member Avatar for james.lu.75491856
0
191

The End.