14,946 Topics

Member Avatar for
Member Avatar for trihaitran

I am trying to run a Cherrypy tutorial from this site: [url]http://www.serpia.org/cherrypy[/url] It is giving me this error when I try to run the start.py: [code] bob-smiths-powerbook-g4-15:~/Desktop/CherryPyTutorial/cgi-bin bobsmith$ python start.py Traceback (most recent call last): File "start.py", line 21, in ? cherrypy.server.start() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 92, in start raise ValueError("No …

0
60
Member Avatar for pareshv22

hi ppl i m a biologist by profession and wish to learn python , may i request for any online free book or guide ! thankx in advance with regards

Member Avatar for Ene Uran
0
85
Member Avatar for Blujacker

Hi I am solving new problem and i cant find any solutin:( i have wx.PaintDC and i painted there some lines. I am trying to save it as file. I found only something about BufferedDC, but it didnt work corectly:( Thanks for all post!

0
43
Member Avatar for jrcagle

I wanted to do an image viewer for a photo catalog project. Here is the code: [php] import Image, ImageTk from Tkinter import * filename = "C:/Pictures/2006/2006.07.04/E clarus 1 crop.jpg" class MyFrame(Frame): def __init__(self, master): Frame.__init__(self, master) im = Image.open(filename) # <--- chokes! im.resize(250,150) self.image = Label(self, image=ImageTk.PhotoImage(im)) self.image.grid() self.grid() …

Member Avatar for aot
0
6K
Member Avatar for aot

So, it would be nice to be able to insert scrollbars into my program (with Tkinter). Right now I'm using labels to display all my long blocks of text, and people flip through pages to get throught it all. I thought I'd try to add a scrollbar, but it doesn't …

Member Avatar for Lardmeister
0
104
Member Avatar for aot

So I'm at the final stages of my program -- it's a working experiment that creates a data file for each participant. My hope was that when I was done, it would be relatively easy to create an analysis program that searches through all the data files and create a …

Member Avatar for aot
0
127
Member Avatar for muddpigeon

ok you will probably be sick of my posts but i have tryed and got this far, i ripped the program to pieces and started again. basically its a atm program that i have to do for college. if anyone can see why its not workin properly it would be …

Member Avatar for muddpigeon
0
175
Member Avatar for leeqiang

I just wanna use PyScripter.and I found when I run a test with wxpython.it's dummped.(I have installed the wxpython packge)How was that?:'(

Member Avatar for leeqiang
0
110
Member Avatar for Prahaai

Hello. I am not new to Python in general, but i'm new to Tkinter. So, can anyone suggest me HOW can i make an interface like mIRC, with two text-boxes: - the lower text box will be one line and will be used to get the text commands. - the …

Member Avatar for leeqiang
0
86
Member Avatar for trihaitran

Hi I know this sounds really stupid, but I cannot figure out how to run the wxPython demo program. I'm using OS X and I downloaded the latest demo/docs package. When I double click on the "wxPytho demo.app", there is a splash screen with the wxPython logo, but then there …

Member Avatar for leeqiang
0
331
Member Avatar for alba07

I wrote a program in java that takes a message entered in the shell and flashes the message, then click the quit button to quit. Now I am supposed to rewrite it in python. So far in TKinter I only have the actual quit button (gui). I have no idea …

Member Avatar for alba07
0
239
Member Avatar for fonzali

hi , below is my program which is supposed to accept 3 different numbers , add them up and print the result but what it does is that it takes the first number and mutiplies that by 3 , where have I gone wrong ? [code=python] from Tkinter import * …

Member Avatar for fonzali
0
839
Member Avatar for pinder

hey guys im trying to express this in python, for i in $(ls [B]lsb[/B]/desktop); do tjreport [B]lsb[/B]/desktop/$i/journal* > [B]lsb[/B]/desktop/$i/${i}fail; tjreport -d [B]lsb[/B]/desktop/$i/journal* > [B]lsb[/B]/desktop/$i/${i}all; done its shell commands but i dont know how to do this in python could u guys help please thx

0
59
Member Avatar for grandprix

hello all, i need to write a script for windows server 2003 that will allow me to add new users to the Active Directory, but not conventionally, as i will soon explain. This is a full command right now: dsadd user "CN=ATEST001,OU=local-admins,DC=red,DC=qumranet,DC=com" -display "ATEST001 FAMILYNAME" -pwd 123456 -u RED\administrator -p …

Member Avatar for jrcagle
0
104
Member Avatar for heartheart

I have a script that spawns two threads, one for incoming data off a socket and one for outgoing. The series of execution is currently as so: Connects to server Outgoing thread sends login information Incoming thread recieves some information back Outgoing thread enters / leaves critical section Outgoing thread …

Member Avatar for heartheart
0
76
Member Avatar for sneekula
Member Avatar for sharma_vivek82
0
194
Member Avatar for sliver_752

Hello all, Is there any algorithm to convert a python tuple to MySql query. Ex: [B] ('*','name','sliver')[/B] should convert to [B] select [Pri_Key] from [All Tables] where 'name' = 'sliver';[/B] I have been able to do so ... but my algorithm looks very ugly and have to process everything bit …

Member Avatar for sharma_vivek82
0
666
Member Avatar for fredzik

G'day, I've been googling for the last three weeks :eek: trying to get an example of a program larger than a simple "Hello World" that works inside it's own GUI. I've been working on the "GUI with calculator" in this same section of Daniweb, but as soon as I put …

Member Avatar for fredzik
0
142
Member Avatar for aot

Does anyone know if there's a way to make a larger entry box in Tkinter? I'm looking to allow users to enter comments at the end of my program, so there should be plenty of space.

Member Avatar for aot
0
85
Member Avatar for peterhis

hi everyone, i am newbie for python.. what i want to do is to click on the button and the python script will add up for what i ordered/choose from the webste... th can some one give me idea?

Member Avatar for 8374
0
184
Member Avatar for nytrokiss

Does anyone know where this comes from or comes in! I haven't seen it and now i have seen it in my code ( i know what it means but can anyone provide somemore info....)

Member Avatar for nytrokiss
0
101
Member Avatar for slayr-cxf50

Hi I am creating a loop, and for one of the ?possibilities (or answer things or whatever they're called when you can execute commands from the results) i have a result of None. This is the code. ready = False while not ready: input = raw_input("Are you ready?") if input …

Member Avatar for Lardmeister
0
90
Member Avatar for R.S.Chourasia

Hello everyone, I am trying to run my .psp project on the IIS.But It is giving the some CGI ERROR. I dont know why it is giving such error. The project is working wee on the Wamp Apache server. I went through the microsoft support help. And follow the instruction,But …

0
76
Member Avatar for bkerr06

Hi all, I've been working on a program that simulates a racquetball match. The problem I am having is getting the match to end when one player is the clear winner of 'n' games. I've tried adding modules, altering loops, adding variables, etc. Is anyone able to help by pointing …

Member Avatar for liz517
0
801
Member Avatar for qkrtjgk86

i am trying to sort a list using recursive function... the first thing i want to do is to extract the maximum element and append it to a recursively sorted sublist. def selsort(l,maximum = 0, appending = ""): if l: if l[maximum]<l[len(l)-1]: appending = l[0] selsort(l[len(l)-1:0],maximum +1) sort_list = sort_list.append(appending) …

Member Avatar for katharnakh
0
67
Member Avatar for dav_yip

I have a problem is phasing the extended charactors in TK(). Any help would be apreciated. a='itself ‘a parody’.' >>> a "return" 'itself \x91a parody\x92.' >>> def display(data): root = Tk() scrollbar = Scrollbar(root) myTextWidget= Text(root,yscrollcommand=scrollbar.set) myTextWidget.insert(0.0, data) scrollbar.config(command=myTextWidget.yview) scrollbar.pack(side=RIGHT, fill=Y) myTextWidget.pack(side=LEFT, expand=0, fill=BOTH) >>> display(a) I ended up geting …

Member Avatar for katharnakh
0
147
Member Avatar for lyl

Hi, I'm looking at writing python script to enable me to trigger multiple ftp processes concurrently in the background mode, like using "&" in shell programming. Can someone share with me the command to do so? Thank You. LYL

0
44
Member Avatar for purifier

I wasn't able to run a Python script. But then later I was able to run it through the Shell. I was experimenting with cron jobs and set up the python execution in as a cron. The first time it ran, It was fine but then after that, it started …

Member Avatar for Lardmeister
0
85
Member Avatar for liz517

This is what I have. I know I am missing something can you help [code = python]import string def main(): print "This program replaces 4 lettter words in a file with xxxx" # get the sequence of words from the file fname = raw_input("File to analyze: ") text = open(fname,'r').read() …

Member Avatar for sneekula
0
119
Member Avatar for Gigs_

I want to make find in my text editor like in mozilla firefox on the bottom of my gui this is only for learning. [code=PYTHON] class MyClass(Frame): def onFind(self, target=None): if target == None: target = tkSimpleDialog.askstring('Find!', 'Search for string!') if target: where = self.text.search(target, INSERT, END) if where: pastit …

0
55

The End.