15,406 Topics

Member Avatar for
Member Avatar for bennyzil

I've encountered the following problem: Our program has two parts - the algorithm which is written in python (with numeric), and the GUI written in java. We want them to be able to work together - that means that the java part could ask the python for a calculation and …

Member Avatar for mostafadotnet
0
157
Member Avatar for prinitor

Hi,:p Im totally unfamiliar with python - and need a little help. Im trying to add one command to superkaramba theme - it must be done in python file I know how that command looks when given from command line (bash) command is: [B]dcop knotify default notify eventname appname 'You …

Member Avatar for prinitor
0
119
Member Avatar for chris99

Can you do these in the IDLE converter, or is it not powerfull enough, as I don't want to download 2 more programs just to expand my Python knowledge. Can I make graphics in the IDLE interpreter, and if so, is there a tutorial to help?

Member Avatar for mostafadotnet
0
133
Member Avatar for chris99

It is very annoying, I have typed it as best I can, but option 2 doesn't work. Option 1 is to take the test in Test.py, option 9 is to quit, and option 2 is supposed to print all the questions and answers. This is the code: [CODE]true = 1 …

Member Avatar for Ene Uran
0
286
Member Avatar for chris99

Need help. How do I fix this code? [CODE]max_points = [25,25,50,25,100] assignments = ["hw ch 1","hw ch 2","quiz ","hw ch 3","test"] students = {"#Max":max_points} def print_menu(): print "1. Add student" print "2. Remove student" print "3. Print grades" print "4. Record grade" print "5. Save Students" print "6. Load Students" …

Member Avatar for Ene Uran
0
96
Member Avatar for jrcagle

A friend of mine just introduced me to the Eclipse IDE, which may or may not end up replacing IDLE for me. Anyway, one of the features of Eclipse is error warnings as the code is *displayed*, rather than waiting for errors to pop up at runtime. This code got …

Member Avatar for Ene Uran
0
116
Member Avatar for Blujacker

I have a problem: How to insert raise in Text()? for example i have file: [code] #my_program.py a=ddd [/code] and other file: [code] #my_file.py: from Tkinter import* root=Tk() text=Text() text.pack() execfile('my_program.py') #text.insert(END,raise) mainloop() [/code] In file my_program is Error. How to insert raise of this error in Text? thanks

Member Avatar for Ene Uran
0
138
Member Avatar for jan1024188

hi im 13 years old and im from slovenia.i m learning english from internet. i love linux...my current distro is gentoo.Im learning python right now.im angry to myself why didnt i start with that when i got first computer...i whisted time with crappy windows.... btw i love this forums...and im …

Member Avatar for jan1024188
0
43
Member Avatar for katharnakh

I have a dictionary defined say D, I also have initialized it. When I say len(D), some time it gives me correct answer, but some times it throws me error saying [I]UnboundLocalError: local variable 'len' referenced before assignment[/I] can anybody tell me why is this error. Am I wrong some …

Member Avatar for vegaseat
0
2K
Member Avatar for msvinaykumar

What does connection.conv() means? I know that connection.conv() - set type conversion options between MySQL and Python but How to implement this in python Vinay

Member Avatar for mostafadotnet
0
73
Member Avatar for Ene Uran

What is a closure? I keep reading this word in programming, but never got a good explanation.

Member Avatar for Ene Uran
0
286
Member Avatar for akadri

I joined this group today ie on 21st Aug, 2006. I want to introduce myself.. I am Asrar from India. I am doing MSc. in Network Security from University of Glamorgan, Wales, UK My interests are C and Python programming.. I think Unix is quite interesting.. Thanks for reading this..

Member Avatar for sck4784
0
65
Member Avatar for biganimal

I have tweaked this program but not sure additions I made are correct and also need some help in making some additions. I want to make sure the program can track the dates of all the types of transactions within the program also having a loop involved so someon can …

Member Avatar for biganimal
0
81
Member Avatar for jrcagle

I'm befuddled by something. Here is transcript of the interactive session: [code] >>> range(9).remove(3) >>> >>> print range(9).remove(3) None >>> a = range(9).remove(3) >>> a >>> a = range(9) >>> a [0, 1, 2, 3, 4, 5, 6, 7, 8] >>> a.remove(3) >>> a [0, 1, 2, 4, 5, 6, …

Member Avatar for jrcagle
0
3K
Member Avatar for hanifa

Hi, I am using MSSQL (Microsoft SQL)to liase with python via third party driver. Well here goes... I have created two instances of SQL registration in my Enterprise manager. It is under i)Console Root->Microsoft SQL Servers->SQL Server Group->(LOCAL)(Windows NT) and ii)Console Root->Microsoft SQL Servers->SQL Server Group-> INTEL\FR6EnterpriseDB (Windows NT) Btw …

Member Avatar for hanifa
0
132
Member Avatar for Matt Tacular

I have made a program that does the rolling for you for the board game "Risk" I even made it tell only the attackers top two rolled and it says the attacks and defenders rolled in order of highest to lowest. But I need it to say who has to …

Member Avatar for vegaseat
0
215
Member Avatar for lekshmi200

hi everybody i m lekshmi i m using python for web design i want to know hw we creaye sessions in python like in jsp nd all

Member Avatar for Ene Uran
0
90
Member Avatar for swapnamishra

Could anybody tell me the difference between Dispatch and DispatchEx. I am new to python and extremely confused about the usage of the two methods.

Member Avatar for N317V
0
2K
Member Avatar for riddz_22

is there anyway to clear the screen like if you are using cmd prompt?? yes i kno im a noob but any help would be greatly appreciated

Member Avatar for pty
0
180
Member Avatar for lekshmi200
Member Avatar for bleb1982

Below is a working program that goes through the xml document and outputs all of the data to an output file. That part is fine, but what I need help with is that the tagname Comments: in the xml document will have the word Patch* in it. I need to …

0
96
Member Avatar for willhs

Hi, this is my first post. I'm pretty new to python. I used it a bit in my summer research, and I wanted to apply it to my current situation. I'm trying to figure out a way to best assign chores in a 23-person frat house. I wanted to assign …

0
60
Member Avatar for katharnakh

I had a problem in connecting to remote MySQL server, which is being firewall protected. I searched in Internet to find possible solution, I found, I have to use port forwarding using SSH command, and I am using WinXP. But unfortunately, SSH command is not there in Windows. I used …

0
82
Member Avatar for lostpenan

I would like to read a html file that has asian encoding (gb2312), then extract the specific strings and then copy them into a new html file. But when i try to read the html file, i get gibberish. Im using Python 2.4.3 and i know it supports gb2312 but …

0
137
Member Avatar for jrcagle

Hi, I'm still trying to straighten out Tk in my mind. :eek: What I want to do is, under certain circumstances, completely clear the screen and display something new. Instead, it displays the new stuff together with the old. Here's excerpts from the code, with the offending line marked with …

Member Avatar for jrcagle
0
154
Member Avatar for Ginner

Hi all, I am working on a problem that should have been very trivial but has turned into a multiple marathon without an end in sight. I have written two very small scripts, one auxiliary script as below with two classes 'Node' and 'Queue' intended for use in a linked …

Member Avatar for N317V
0
258
Member Avatar for biganimal

This is a repost coded for everyone to read a little easier. I created this program for my daughter to use but I want the program to retain information on questions/answers and not have to start over every time program is started. [code] # questor.py # define some constants for …

0
72
Member Avatar for katharnakh

How do I run a command in backend on Windows XP. I want to run a command using Python programming language. If I run a command in Python a command prompt will pop up, which I want to hide. Can we run a command on Windows which makes command prompt …

0
44
Member Avatar for swapnamishra

How to execute the code written in a .py file. I wanted to know the exact command to be used. Is it executeFile("File.py")?

Member Avatar for Ene Uran
0
88
Member Avatar for biganimal

I created a program for my daughter and its a little rough around the edges. I need to make some improvements to it but stuck. I want it to be able to save input data and be able to load it back in so every time you start the program …

Member Avatar for Ene Uran
0
91
Member Avatar for Ene Uran
Member Avatar for Ene Uran
0
817
Member Avatar for Ene Uran

Is there a way to verify an exit, if you click on the exit symbol on a wxPython frame?

Member Avatar for Ene Uran
0
79
Member Avatar for biganimal

I have a simple program started and need help enhancing it and making it a more realistic database tool giving easy entry and retrieval. import shelve import string UNKNOWN = 0 HOME = 1 WORK = 2 FAX = 3 CELL = 4 class phoneentry: def __init__(self, name = 'Unknown', …

Member Avatar for bumsfeld
0
114
Member Avatar for rockzZ25

Hi All, I have an algorithm on the server. I want the algortihm to perform calculations based upon the data which is stored from a database to nested lists before the algorithm is run. Is there anyway of keeping the program running without any need of retrieving the data from …

Member Avatar for rockzZ25
0
121
Member Avatar for zx9

hi, This is my problem i have programmed a little word unscrambler i have a file wordlist.txt in my python folder and this program works just fine and unscrambles one word at a time but i dont how how to edit it to make it unscramble 10 words at a …

Member Avatar for jrcagle
-1
2K
Member Avatar for lostpenan

I would like to extract the header info from an image file. For example I would like to search for the key "LINES" and return "2240" as string. And should I use open("r") or open("b") since im only interested in the header. Header: [inlinecode] BANDS = 1 BAND_STORAGE_TYPE = BAND_SEQUENTIAL …

Member Avatar for lostpenan
0
2K
Member Avatar for katharnakh

I am not able to connect to remote MySQL server, using MySQLdb package. I have enough permission on remote machine with all rights set to 'Y' and Host field of USER table in mysql database has a value '%', which allows remote login. I tried using Navicat which requires me …

0
66
Member Avatar for abayden

Hi, I am having trouble with wxPython on SUSE Linux Enterprize Server 9. The Computer has several Itanium 2 processors, and the version of Linux is for these processors. Python works just fine. So do other graphical toolkits Tkinter, pygtk, and qt. However when I try to use wxpython it …

Member Avatar for bumsfeld
0
133
Member Avatar for srired

hi, im kindof new to these things.iv just learnt a little python and am looking to learning something about parsing XML from APIs etc. could anyone give me a few pointers. also any advice as to what should i learn from now on would be very much appreciated(could you please …

Member Avatar for bumsfeld
0
93
Member Avatar for a1eio

hi, i'd like to create something that basically grabbes information from websites, however i havn't any experience in urllib (apart from very basic page reading) and the issue is that the page i want to grab data from checks to see if another page is connected to it or perhaps …

Member Avatar for metabo_man
0
345
Member Avatar for jimmypk

[code] # I have a problem in building class Tree (Binary Search) # function DelNode(self, Key) is not exactly # I Need Help, Please building class Tree (Binary Search) # Is there any different definition of class Tree from string import split class Node: def __init__(self): self.Key = None self.pLeft …

Member Avatar for G-Do
0
140
Member Avatar for jamshid

I start Python Programming Language in these days, when i was trying to understand them i come across to these problems so i will be so happy if you help me in : 1) [code] >>> # Integer division returns the floor: ... 7/3 2 >>> 7/-3 -3 [/code] I …

Member Avatar for jamshid
0
105
Member Avatar for Jayzilla

Hi there, My niece often asks me to quiz her on her times tables, so I thought I'd spare myself any further effort and write a program to ask her random multiplication questions. I used Tkinter to create a GUI with a label asking the question, an entry box for …

Member Avatar for bumsfeld
0
131
Member Avatar for bumsfeld

Why is there a tuple and list in Python. They seemed to perform similar things.

Member Avatar for jrcagle
0
175
Member Avatar for msaenz

:cheesy: hi all, i do not know how many people have worked in biopython before but, i am soo close to this answer i can feel it! just need a lil help again... basically this takes a FASTA file from NCBI and makes it into a dictionary which is wonderful …

Member Avatar for vegaseat
0
131
Member Avatar for msaenz

:mrgreen: hi guys/gals, thanks for the bioinformatics help, im working on tons of independant projects, it feels like im in summer school and im not even in it! oh well, that is how it is. Python and me are like new friends so I have been needing on this journey …

Member Avatar for Ene Uran
0
119
Member Avatar for girish_sahani

hi ppl, Consider a list like ['a.1','b.3','b.4','c.2']. Here 'a','b','c' are objects and 1,3,4,2 are their instance ids and they are unique e.g. a.1 and b.1 cannot exist together. From this list i want to generate multiple lists such that each list must have one and only one instance of every …

Member Avatar for vegaseat
0
84
Member Avatar for JohnJohnUSA

:?: I am using Python IDLE 2.4.3 on Windows XP. I use File->New Window to create a new program. In the Save As dialog, it always takes me to the python program directory (where python is installed). Since this is not where I want to save my source file, I …

Member Avatar for bumsfeld
0
422
Member Avatar for JohnJohnUSA

I ran the following program to retrieve entries from the windows registry on Windows XP: [code] import win32api, win32con aReg = win32api.RegConnectRegistry(None, win32con.HKEY_CURRENT_USER) aKey = win32api.RegOpenKeyEx(aReg, r"Software\Microsoft\Internet Explorer\PageSetup") for i in range(100): Name, [URL="http://www.tek-tips.com/viewthread.cfm?qid=1249756&page=1#"]Data[/URL], Type = win32api.RegEnumValue(aKey, i) print "Index=(", i,") Name=[", Name,"] Data=[",Data,"] Type=[",Type,"]" win32api.RegCloseKey(aKey) [/code] Program output: [quote] …

Member Avatar for a1eio
0
169
Member Avatar for Ene Uran

Does Python have a module to display when a file has been last modified? Also, how do you get the file length?

Member Avatar for bumsfeld
0
671

The End.