14,945 Topics

Member Avatar for
Member Avatar for R.S.Chourasia

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 …

Member Avatar for fredzik
0
80
Member Avatar for cucap

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 = …

Member Avatar for fredzik
0
86
Member Avatar for iamthwee

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?

Member Avatar for Ene Uran
0
692
Member Avatar for FoX_

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...

Member Avatar for NetByte
0
121
Member Avatar for justmonkey23

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 …

Member Avatar for justmonkey23
0
116
Member Avatar for fredzik

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 …

Member Avatar for fredzik
1
132
Member Avatar for 65dos

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 …

Member Avatar for vegaseat
0
126
Member Avatar for aot

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, …

Member Avatar for arsham
0
79
Member Avatar for StrikerX

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.

Member Avatar for Ene Uran
0
124
Member Avatar for Zorbie

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 …

Member Avatar for jrcagle
0
258
Member Avatar for Mouche

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 % …

Member Avatar for arsham
0
136
Member Avatar for fredzik

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 …

Member Avatar for fredzik
0
121
Member Avatar for Matt Tacular

[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

Member Avatar for ghostdog74
0
180
Member Avatar for Matt Tacular

[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 …

Member Avatar for jrcagle
0
106
Member Avatar for time4biking

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 …

Member Avatar for BearofNH
0
124
Member Avatar for Blujacker

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__ …

Member Avatar for Blujacker
0
188
Member Avatar for pyarticles

Hi all I created [URL]http://pyarticles.blogspot.com[/URL] for Python knowledge. Let's check it out please

Member Avatar for vegaseat
0
60
Member Avatar for bumsfeld
Member Avatar for vegaseat
0
2K
Member Avatar for wandie

I was wondering if you could help me out. I have a list box that has seltext and every time i want to select another item in the list it adds on. for example i select "/hello" then it appears as "/hello" but then i select something else it will …

Member Avatar for LouLouLou
0
163
Member Avatar for StrikerX

hi guyz, i'm a Python user (not so long) , anyway i've read some stuff about lua . i've written function like this [code]def pair(dic = {} ): return dic.keys(), dic.values()[/code] a dictionary is a parameter to the pair function . to use it like this : [code]dic = {1 …

Member Avatar for StrikerX
0
145
Member Avatar for trihaitran

Hi, I'm writing a dictionary program with Turbogears that involves using Chinese text. There is an HTML form that has a dropdown menu, a text field and a button. The input from the form (in this case a Chinese character) is passed to one of my methods. The thing is …

0
57
Member Avatar for 7even

I have a problem with tree control and i don't know how to solve it, maybe someone can help me. What i'm trying to do is display widgets in a staticbox plus a help text when i select different items in a tree. For example when i select item1 in …

Member Avatar for vegaseat
0
218
Member Avatar for lineman60

so when i run this in python interpiter it works [CODE] >>> import os >>> b= os.path.getsize("/path/isa_005.mp3") >>> b 2071611L >>> [/CODE] but when i run it in a script [CODE] b= os.path.getsize("/path/isa_005.mp3") FILE.writelines(b) [/CODE] i get an error. any one know how i can get it to print the …

Member Avatar for mawe
1
486
Member Avatar for Gumster

Well im having a little problem with some tuples or more so about defining which tuple [CODE=python] #Start of my tuples Rock = ("Scissors","Fire","Snake","Human","Wolf","Sponge","Tree") Fire = ("Scissors","Paper","Snake","Human","Tree","Wolf","Sponge") Scissors = ("Air","Tree","Paper","Snake","Human","Wolf","Sponge") Snake = ("Human","Wolf", "Sponge", "Tree","Paper","Air","Water") Human = ("Tree","Wolf","Sponge","Paper","Air","Water","Dragon") Tree = ("Wolf","Dragon","Sponge","Paper","Air","Water","Devil") Wolf = ("Sponge","Paper","Air","Water","Dragon","Lightning","Devil") Sponge = ("Paper","Air","Water","Devil","Dragon","Gun","Lightning") Paper = ("Air","Rock", …

Member Avatar for jrcagle
0
101
Member Avatar for trihaitran

Hi I'm trying to start learning how to use Turbogears but I can't figure out how to install sqlite on my computer. I'm running Mac OS 10.4 and there are no precompiled binaries on the sqlite [URL="http://www.sqlite.org/download.html"]download[/URL] page for the Mac. They do list a cross-platform binaries that is stated …

0
73
Member Avatar for Lapinbriac

My problem may be very simple. I want to use a Tkinter window to show informations to the user, so that he could enter his answers to the Python Shell. The problem is that when the Tkinter Window appears, the Python Shell will no longer receive any command before I …

Member Avatar for aot
0
174
Member Avatar for Lapinbriac

Hello, I would like to save the drawings I have made on a Canvas with the Tkinter Module. Is it possible to make a .jpg or .gif or .bmp from a Tkinter window ? Thank you!

Member Avatar for vegaseat
0
160
Member Avatar for fredzik

G'day, Back again, this time with three problems. The code below contains a white entry box that I'm trying to get rid of. The main reason I'm trying to get rid of it is that the game I'm working on has a scrollable GUI, and with 50 or so frames …

Member Avatar for fredzik
0
2K
Member Avatar for vital101

Hey everyone, I've recently needed to use python to retrieve a cookie from someone visiting my web site. This is all needing to be done server-side, so I will (i think) need to use the Cookie module. I've looked online everywhere, and I'm having a hard time figuring out exactley …

Member Avatar for vegaseat
0
87
Member Avatar for aot

So I would really like to use Python to play some sound files -- it doesn't particularly matter what format, as they're just going to be basic "ping" type noises. However, it seems like whatever advice I find doesn't work out for my situation -- most modules seem to be …

Member Avatar for aot
0
94

The End.