15,190 Topics

Member Avatar for
Member Avatar for sarabhjeet

Actually i need to save the file's name in file menu history whenever we close the application from filemenu's exit button.Whenever i close the application from windows close button the entry is coming to file menu but when i close from file menu exit it should make an entry to …

Member Avatar for sarabhjeet
0
81
Member Avatar for Racoon200

Hi. I would like to know how to get the position of the cursor (blinking line in any text control) to insert there a string. I would also like to know how to get the value of a text widget and store it in a variable.

Member Avatar for Racoon200
0
6K
Member Avatar for rmansuri

Hello Pythoner, I have found good website which is list of almost all python website including beginner to advance level tutorial.. Jst thought to share with community. [COLOR="Green"][URL="http://python.objectis.net"]http://python.objectis.net[/URL][/COLOR]

Member Avatar for vegaseat
0
108
Member Avatar for sneekula

I have a dictionary of chemical symbols and names, to look up the symbol and get the name is easy, but to find the symbol of a given chemical name seems to be more akward. Am I missing something here? [code=python]# small dictionary of chemical symbols symbol_dic = { 'C': …

Member Avatar for jrcagle
1
243
Member Avatar for Racoon200

I get this error when uploading a file with the ftplib via storbinary method after retrieving a file via retr method. Why does it happen and how can I fix it?

Member Avatar for Racoon200
0
2K
Member Avatar for slipkid

Hiya, First off, A Python conumdrum, I have done the searching to no avail. I am having trouble with the command line. Everything loads up and is recognized yet when I attempt to run a file all I get are errors. The trusty ole Hello World runs but nearly everything …

Member Avatar for slipkid
0
96
Member Avatar for gusbear

how after drawing a square with two points at opposite corner would i find the width of it?? thanks

Member Avatar for Narue
0
110
Member Avatar for Mr.popo

Im having a problem. I am sick of using a problem such as dr python or geany which when you execute the program a script is made along with the python script which alows it to execute. Well anyway i want to be able to use gedit and then execute …

Member Avatar for Racoon200
0
148
Member Avatar for furkankamaci

Hi; I have two buttons and one function.When a user click button1 or button2 program should call the function and the function will write to the screen whic button clicked.I mean if i click button1 there will write "Button1 clicked" on the screen.All in al i want to learn how …

Member Avatar for Racoon200
0
121
Member Avatar for mhslax13

Im in a computer security class and am working on a project involving linux viruses. If anyone knows anywhere I can obtain some code to work with it would be greatly appreciated as I'm really struggling finding any.

Member Avatar for woooee
0
68
Member Avatar for ryan_vietnow

Hello everyone,i'm starting to learn pytho now.Could anyone give me some advice of what is the best IDE for python there is based on your experiences guys. thanks.More power to the open source community.

Member Avatar for sneekula
0
150
Member Avatar for hellsing

I using window Vista home premium(32 bit) and I cannot use python after I save a file once I get the following error messages "socket connection error" "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal fire wall software is blocking the connection" I have to …

Member Avatar for Duoas
0
90
Member Avatar for jliu66

Hi, Dear my friends, I have a trick questions to ask you about python scripts for help. How can I set up a complied python code with a password so that nobody can touch or modify it and even copy it from one PC to another PC? In other words, …

Member Avatar for BearofNH
0
179
Member Avatar for fonzali

hi everybody , I have a program (below) but don't know how to direct the out put to the printer , can anyone help thanks [code=python] from calendar import * setfirstweekday(5) #saturday prcal(2008) raw_input('hit a key') [/code] another question is that I tried writing " saturday " instead of "5" …

Member Avatar for fonzali
0
304
Member Avatar for mhslax13

Ok im pretty new to coding in general and have two questions. 1. I downloaded a python script that packages my programs into an executable however im running Windows Vista(i believe this to be the problem) and when i try to run the executable i get a win32 error. 2. …

Member Avatar for mhslax13
0
86
Member Avatar for gusbear

when i start my program i write import graphics * def main(): but then when i try to create a button it doesn't work anyone know the problem??thanks

Member Avatar for Ene Uran
0
2K
Member Avatar for gusbear

can someone please post the correct method of the five click house or the newton's method from zelles book, reward promised,it is xmas?? thanks a mill need this for xmas tests!

Member Avatar for Duoas
0
275
Member Avatar for tuse

I am an absolute beginner to python. I would like to know how to download and install the modules. I am working on Windows. I am specifically looking to use the 'gasp' module. Any help would be highly appreciated.

Member Avatar for tuse
0
104
Member Avatar for jliu66

Hi, Dear my friends, I has been using python for a while. But I just realized that when you make a copy of python class, it is copying a link to the class. So when you make the change to the attritutes of objects, it will change other attributes in …

Member Avatar for jliu66
0
205
Member Avatar for a1eio

Hello, I was wondering whether it was possible to embed something made with pygame, like some sort of animated display or bouncing ball whatever, into a Tkinter made window, with tkinter buttons/frames etc... Anybody heard of this or know of if it can be done? Thanks a1eio

Member Avatar for a1eio
0
803
Member Avatar for johnnybgoode

I am trying to activate the Help > About button with no succes. I made a GUI with Glade3 with only a menu item in the main window. Here's my code: [code] #!/usr/bin/env python import sys try: import pygtk pygtk.require("2.0") except: pass try: import gtk import gtk.glade except: sys.exit(1) class …

Member Avatar for johnnybgoode
0
156
Member Avatar for nightwalker

Hello everybody, my name is Ludvig, I am a swedish student who educates myself to become an engineer. For my programming course I have made a minesweepergame, but to get the highest grade availible, I have to make it in graphics. I have succeded in doing a version without the …

Member Avatar for vegaseat
0
108
Member Avatar for voodoo_doctor

Hey there! Right now I'm working on a system that is built according to MVC-model. All three levels have try/catch statements for things where errors might occur. The problem is that I want all those messages to show up in GUI (View). Right now I'm having some troubles doing it …

Member Avatar for voodoo_doctor
0
67
Member Avatar for Mr.popo

Ive got my own python modules which I need to place somewhere so python can read them. Ive got two questions. 1. Wheres the best place to put modules? 2. It wont let me add modules to /usr/lib/python2.5? Thanks Mr.popo

Member Avatar for Mr.popo
0
1K
Member Avatar for laspal

Hi I wanted to know how can I make sure that table exist in my database. [code] class Record: def __init__(self): self.conn = MySQLdb.connect( host = 'localhost', user = 'root', passwd = 'abcd', db = 'justfun') self.cursor = self.conn.cursor() self.cursor.execute("DROP TABLE IF EXISTS book") self.cursor.execute( """CREATE TABLE book (name char(40), …

Member Avatar for katharnakh
0
3K
Member Avatar for axn

here is the snippet data = ''2007-12-31 Name (mike) Age (34).....' gregorian = time.strftime(data.split(" ")[0]) print gregorian this gives me "2007-12-31" i need to convert the gregorian date in the variable to julian date. i tried this but it gives me the current date julian = time.strftime('%j', time.localtime())

Member Avatar for Duoas
0
2K
Member Avatar for boni_go

Hello, I have some problem with os exception. In the traceback info I get only the errno without the description. for examplem when I write: [code=python] import os; os.listdir("no-exists-dir-name"); [/code] I get the exception: [code=python] Traceback (most recent call last): File "<interactive input>", line 1, in <module> WindowsError: [Error 3] …

Member Avatar for SteveWhite
0
451
Member Avatar for knish

Hi, I have two py programs. both have while 1: loops. Lets say File A has one while 1: loop and File B has another while 1: loop. File A has a break statement. File B has no break statement. File B is running. I now run File A. This …

Member Avatar for Duoas
0
99
Member Avatar for laspal

Hi I wanted to know how can I delete class object inside list. class Record: def __init__(self): self.list = [] def add(self): fname = raw_input("First Name:> ") lname = raw_input("Last Name:> ") street = raw_input("Street:> ") self.list.append( Person( fname, lname, street)) Now I have added my Person object into the …

Member Avatar for katharnakh
0
4K
Member Avatar for gaowei

I want to learn python in my holiday!But I don't know which python's book is well.Who can recommend one good book to me! how to learn python! What is important part of python? I'd like to have your advice as to me. Thanks in advance. Any help is much appreciated.

Member Avatar for Impact4ever
0
104

The End.