15,181 Topics
| |
I feel like kind of dumb. I have been reading python docs all day, and feel like I have not absorbed anything. I would like to parse info out of an xml document. here is a url to a sample doc [url]http://freetalklive.com/netcast.xml[/url] lets say I want to parse out the … | |
G'day, I've been puzzled for some time about how they code in the help section of GUIs those funny looking purple bookie thingies that when you click on them they open up and there are sub-sections with questions marks on pages that open and advice is given about how to … | |
i'am newbie on using Tkinter, and i need help for my application i make application small calculator, but i can't make it just like standard calculator on MS Windows please Help me i wan't my application calculator like this : | |
Hi, i need to develop a simple web app that can listen to a folder in a PC (client) and then write him a response file. Does anyone now if this is possible with python, if not what do you recommend ?... Thanks | |
Please I need help with this program. I tried different approach, but doesn't seem to be getting no where. [B]QUESTION:[/B] [B]You've been going to work on a database project at work for sometime now. Your boss encourages you to program the database in Python. You disagree, arguing that Python is … | |
I have a web site. My webhost supports Python scripts. I am pretty good at python. The question is: How can i make a web-page written in python, so that after i upload it on the host server it looks just like a HTML page? (i mean, it is somehow … | |
I need write a program in python, for a divice with GSM modul , which send a sms (using AT commands), to few gsm numbers set in advance , if there is an input signal from external divice , and doing nothing if there is not a signal !!! i'm … | |
I need to write a program in python, for a divice with GSM modul , which send a sms (using AT commands), to few gsm numbers set in advance , if there is an input signal from external divice , and doing nothing if there is not a signal !!! … | |
Hey, Is there a way I can import dll files made in C# into python and use their classes? | |
I would like to reverse a sentence. I have this: [code=python]sentence = "a doctor kills your ills with pills and you with bills" print sentence[::-1] # sllib htiw uoy dna sllip htiw slli ruoy sllik rotcod a [/code]However, I would like the sentence reversed like this: bills with you and … | |
Can someone look at this and tell me if it actually is doing what it's supposed to. [php]from __future__ import division counter = 1 while True: li = [] for i in range(1,(counter+1)): if (counter/i) % 1 == 0: li.append(i) if len(li) <= 2: print counter,"is a prime." counter = … | |
I read somewhere about somebody importing the sys.py module. I can't find the bugger on my system! I have python 2.5.1 installed on this Waxows XP machine. I did a search for sys.py in the c:\python25 folder and sys.py isn't there! Isn't it supposed to be installed by default? If … | |
this is a program that i have, i dont know why it doesnt work. Could some one help me? thank you very much [code] #!c:\Python24\python.exe # Fig. 35.22: fig35_22.py # A program to illustrate Python's database connectivity. import MySQLdb print "Content-type: text/html" print print """ <html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en" … | |
Please I need help with this question. I have been trying to solve it, was able to solve a part, but not completely through with it [B]QUESTION:[/B] [COLOR=green]Write a program that allows you to do the following five Operations:[/COLOR] [COLOR=green]a. [/COLOR][COLOR=green]Prompt the user to input a list of numbers (Hint: … | |
Hello Everyone, I have to design a [U][B]treeview[/B][/U] like structures in python for a web application. I need a tool which will help me to design GUI on web. Like wxPython which is used for desktop applications, Is there any such tools for web. Or suggest me the way to … | |
Hello everyone, I'm new to DaniWeb and a sort of beginner at Python. I've created a GUI in Python using Glade and GTK and I have two questions. I'm having trouble with comboboxes. Particularly with entering data into a combo box from Python. I've tried the following.... [code] myCombo = … | |
| I was just wonderin if python was worth learning? I have an option for it in Kbuntu, and was wondering if it was worth learning. I'd say no personally, what do you think? |
Hi all; My question is which IDE do you recommend for editing Python codes on WindowsXP??? I've installed its interpreter(2.5) but I don't have any idea about the IDE.(except ActivePython) Thanks for your helps... | |
I would like to be able to add the day, month and year to the end of the filename. I plan on running a version of this script every day so I would like it to create a new file each day. I would like the file to look like … | |
Hello wall, Is there any way to be rid of the red Tk in the upper left hand corner? I remember reading somewhere that you can replace it with another icon, but can you completely remove it, leaving nothing but a blank space? Or can one replace it with: [code=Python]root.title("Any … | |
Hello I have a several problems with using tkinter, if anybody can help, it would be great :D I'm using a .grid method on my widgets. When I put sth (e.g.Label) in for example row=5, and want to put something different (label with other text)in row=5 it overlap one another … | |
Does anyone out there happen to know much about Pydev? It's my preferred IDE (it's the only free IDE that received good reviews when I looked it up), but I'm getting frustrated trying to download some new modules and use them in it. I downloaded and installed the module tkSnack, … | |
Hi, I was wondering, how to use python in Visual Studio.NET or Sharp Develop ?? free software i hope :) Writting GUI is great when it's just drag & drop . Thanks in advance. | |
Okay, I'll be honest right up front, I'm in a first year Python class and this is a question I'm supposed to write a program for. Here's the question: "Write a program that continually reads in numbers from the user and adds them together until the sum reaches 100." Here's … | |
| I know printing primes isn't anything new, but (like always) I'd love to hear some feedback on how I can make my code more efficient and other constructive criticism. [php] def print_primes(r=10): primes = [ ] for i in range(2,r+1): prime = 1 for divisor in range(2,i): if i % … |
Hi, The last time I posted I think I asked too many questions and the main reason that I posted got lost somewhere amongst other side issues. The main reason I posted last time is the following: # The following code is not a game, it is configured just to … | |
[code]str1 = 'c:\documents and settings\user\desktop' str2 = 'starcraft.exe' print str1[/code] I would like to know how it would be possible to add str2 to the end of str1 with a "\" inbetween the two strings. so that I end up with "c:\documents and settings\user\desktop\starcraft.exe". Thanks | |
[code]############################################################################ # # # This program seeks out every copy of "starcraft.exe" in the computer # # and deletes them. # # Created by Matt in Python 2.5 May 2007. # # # ############################################################################ import os def file_find(folder): """search for a filename fname starting in folder""" for root, dirs, files … | |
I am writing a program to ssh into another computer on our network. However with the commands ssh, scp etc... terminal requests the password and os.system() seems to open a new terminal window each time it is called. This makes it difficult to enter the password. I have been looking … | |
Hi, this is my code: [code] # -*- coding: cp1250 -*- import wx class Okno: def __init__(self,parent=None,id=wx.ID_ANY,title="Graf"): self.okno=wx.MDIChildFrame(parent,title="Graf",id=-1) self.okno.Maximize() self.okno.SetAutoLayout(True) self.okno.SetBackgroundColour("#FCFCFE") self.sizer = wx.FlexGridSizer(2,2,0,0) self.canvas = wx.ScrolledWindow(self.okno, id=wx.ID_ANY) self.canvas.EnableScrolling(True, True) self.canvas.SetScrollbars(20, 20, 1000/20, 1000/20) self.sizer.Add(self.canvas, 1, wx.EXPAND) self.sizer.AddGrowableRow(0, 1) self.sizer.AddGrowableCol(0, 1) self.okno.SetSizer(self.sizer) self.canvas.Bind(wx.EVT_PAINT, self.OnPaint) def OnPaint(self, event): pass if __name__ … |
The End.