15,175 Topics

Member Avatar for
Member Avatar for ultimatebuster

Are there designer + IDE that's kind of like the Visual Studio suite for PyGTK or PyQT? [B]Again, don't clutter up the sticky with questions. Ask question in the regular forum.[/B]

Member Avatar for vegaseat
0
133
Member Avatar for dustbunny000

I was wondering if there was a difference between Python and ActivePython. Is there an advantage to using one over another?

Member Avatar for Ene Uran
0
97
Member Avatar for drak0

Hello, this is my first post on DaniWeb so I hope you'll go easy on me ,and my english.I'm working on a implementation of the AES algorithm in python;my app is supposed to encrypt the contents of files, and it does, yet it is kind of slow.I've optimized the code …

Member Avatar for drak0
0
626
Member Avatar for dustbunny000

I keep getting this error: error: unable to find vcvarsall.bat What is vcvarsall.batand why do I need it? I'm new to programming. Please explain as simply as possible!! Thanks!

Member Avatar for Gribouillis
0
249
Member Avatar for Salman. S

Hi, I was wondering if there would be a way to use Python to retrieve information from Google Maps - e.g. I want to get the distance and time from place 1 to place 2. I don't necessarily want any code or anything I just want some information for a …

Member Avatar for slate
0
60
Member Avatar for mukthyar1255

Hi, Thank you,I have some doubt in python programming like 1)Difference in between module,library,package. 2)what is difference in between built in and keyword. Eg: None,True is Builtins not keywords. 3)what is the use of writing the code(to call main method) if __name__=__main__:main rather than simple mian call main() 4) can …

Member Avatar for Lardmeister
0
301
Member Avatar for mukthyar1255

hi, i am working on windows 7 platform,please tell me how to install and configure third party packages,to use that package in some other python program Thanks mukthyar

Member Avatar for snippsat
0
205
Member Avatar for novice20

hi, using ftplib.storbinary(), i am able to successfully upload files of size 60KB, but not of size 7,218 KB and also 26 KB... I am wondering why is this happening??? should file sizes be a multiple of 10...or what is the actual problem??????????? any reply would be greatly helpful....... I …

Member Avatar for Schol-R-LEA
0
133
Member Avatar for novice20

Hi all... I am trying to upload 4 files on a local disk, onto a remote ftp server. All of them are in the same folder(in local machine). I am using the storbinary function of ftplib. Following are the file sizes: 1-- 70 KB 2-- 60 KB 3-- 73 KB …

Member Avatar for novice20
0
116
Member Avatar for mukthyar1255

Hi, i am new to python programming,please tell me the program to send sms from pc to Mobile in python programming thanks mukthyar

Member Avatar for Gribouillis
0
48
Member Avatar for Noob_Programmer

hi im new to python and programming, and I have just learned loop and nesting statements. I dont understand how to create functions and all that. could anyone come with some good suggestions to make my crappy script better? here is my script: [CODE]print 'choose option' print 'a) fortune telling' …

Member Avatar for griswolf
0
99
Member Avatar for rodm

hi, i am a python beginner, at the moment just playing_with/ testing/learning the language, and i must say that i love it. i intend to use it for a new project but i have a question about ... performance. for my project cpython is absolutely ok but, still, i have …

Member Avatar for woooee
0
202
Member Avatar for prakashr85

Friends I need to search for some strings like 'info stat, waiting, connecting, connection pending' in the source txt file those lines which has the strings need to be extracted and saved to a new file. [CODE]import re import os import sys file = open("C:\Users\Administrator\Desktop\logs test\source.txt", 'rU') script = file.readlines() …

Member Avatar for TrustyTony
0
96
Member Avatar for s1w

Problem looks easy. I havent issue like this in other languages, I cant find reason. PythonScript for Notepad++: non-greedy html comment removal for entity: <!-- <input id="file_upload" type="file"/> --> ass --> python script: (?P<begin> and ?P<end> group names are for clearness) [code]import re line = editor.getCurLine() p = re.compile('(?P<begin><!--+)(?P<between>.*?)(?P<end>--+>)') if …

Member Avatar for s1w
0
200
Member Avatar for vom53

Good morning/afternoon/evening, My high school Calculus teacher is requiring our class to program using VPython. Here is the link to the projects we are required to do: [URL="http://www.laquintahs.org/ourpages/auto/2007/5/15/1179207882248/math_programming%20_projects.doc"]Projects[/URL] I was able to finish Project #1 because my teacher provided the code and I just had to edit some parts, but …

Member Avatar for vom53
0
77
Member Avatar for HelloPeople1

Hi guys I'm making a top down shooter game using sprites. I have created all my game but one part, how the enemy shoots. Basically I was wondering how I could check if there was a wall sprite between my player sprite and my enemy sprite. This would be so …

0
61
Member Avatar for markfw

Hi How can I run the function from function name? Here what I have and it gives me an ERROR. Can someone explain why and how to fix it. Thanks ContantsGlobal.py [CODE] CMD = ["02", "A0"] [/CODE] Test.py [CODE] import ConstantsGlobal as GCONST class Test(object): def __init__(self): self.__dic = dict(("0x"+f, …

Member Avatar for markfw
0
167
Member Avatar for mukthyar1255

Hi, i am working was python script developer,i want to write certification exam(certified professional) in python,can you name such cetifcation exams? Thanks mukthyar

Member Avatar for Schol-R-LEA
0
137
Member Avatar for bleedblue

I am creating a phonebook and i have some problems. I get everything to work except im having trouble deleting an entry and also when i add an entry im having trouble sorting it in alphabetical order. This is my code below if someone can help it would be much …

Member Avatar for TrustyTony
-1
183
Member Avatar for vom53

------------------------------ [U][B]Problem:[/B][/U] Given a slider x-value find and plot the equation of the line tangent to a given curve f(x) together with the function f(x). ------------------------------ [CODE]from visual import * def function(): print "Type in your function." return raw_input("Enter it again, %s." % (yn)) from visual.graph import * # import …

Member Avatar for vom53
0
132
Member Avatar for rijvana

hi users.. now i created one application in linux by using python. now i want 2 create setup file using distutils package 2 installation process.. i saw many of the setup file in other application.. each application has diffrent types of setup file.. so it make me some confusion.. help …

0
101
Member Avatar for imperialguy

Some details of my machine and installed packages before proceeding further: [B]Mac OSX version: 10.6.6 Python version: Activestate Python 2.7.1 wxpython version: wxpython 2.8 (uses Carbon API hence limited to 32-bit mode arch only) [/B] I installed wxPython2.8-osx-unicode-py2.7 from wxpython website using their .dmg installer file. This package uses the …

Member Avatar for jingda
0
297
Member Avatar for imperialguy

Before proceeding further, my system configuration is as follows: Mac OS X 10.6.6 MATLAB 2010b ActiveState Python 2.7 I have a gui built using matlab. I wrote the following python script to open that matlab gui using pymatlab python module: [code]from pymatlab.matlab import MatlabSession session = MatlabSession() session.run('cd ~/ratter/ExperPort') session.run('addpath(genpath(pwd))') …

0
96
Member Avatar for hondros

Hey there. I've been programming in Python for about a month now. I've created simple programs for myself, such as games and e-mail applications. Still getting GUI down, I'll post if I need help there. Anyways, here's my problem: Running: Windows XP Python: Python 2.6 I installed the newest version …

Member Avatar for Eswarimallur
0
2K
Member Avatar for novice20

Hi all, i have different modules developed so far, and a main script needs to call the modules based on user's choice. will doing like this work?? using raw_input(), i wait for user choice, and once a choice is made, corresponding module is called. if main.py, does an 'import xxx.py' …

Member Avatar for novice20
0
187
Member Avatar for mukthyar1255

Hi I am new to python programming,please explain me how to install external modules written by other python users,please mention names of such modules.. Thanks Mukthyar

Member Avatar for Gribouillis
0
81
Member Avatar for bmanzana

when i run this code an icon for the image is created but when clicked it says that no preview is availeble any help would be grately apretiated. heres the code. [CODE]from Image import * import ImageDraw z=1 win=new('RGB', (400,400), 'rgb(255,255,255)') win.save('c:\\Documents and Settings\\bradley\\desktop\\python programs\\frac.png') while z < 100000: x=(z**+1) …

Member Avatar for bmanzana
0
116
Member Avatar for Zaffron

Obviously, it doesn't work. So what I'm trying to do (this is all very rough at the moment, merely an experiment/test to see if I can get it to work) is have a method under the player class that, when called, takes the value of the requested item, sees if …

Member Avatar for Zaffron
0
111
Member Avatar for WolfShield

So, I am working with some code I don't understand. Here is the file: [CODE=Python] import sys import os def change_ext(directory, old_ext, new_ext): for f in os.listdir(sys.argv[1]): base, ext = os.path.splitext(f) if ext[1:] == sys.argv[2]: os.rename(f, "%s.%s" % (base, sys.argv[3])) if __name__ == '__main__': if len(sys.argv) < 4: print "usage: …

Member Avatar for WolfShield
0
428
Member Avatar for colts18

Hey guys I cannot figure out how to add collision detection can someone explain how I just want my tank to stop moving when it hits the other tank. Can anyone help? Thanks.

Member Avatar for raptr_dflo
-1
468

The End.