15,185 Topics
| |
Hi, I am thinking about using the Python Imaging Library to display the life cycle of a hair follicle gene. This life cycle is divided into four main stages: 1. Anagen 2. Catagen 3. Telogen 4. Exogen Gene name and corresponding life cycle stage will be stored in a csv … | |
how do i move to next record after i click a button called 'Next' and how do i move to previous record after i click 'Previous' in MySQLdb. does method exists to do this? please help me........... [I]import MySQLdb from Tkinter import * db=MySQLdb.connect(host='127.0.01',user='',passwd='',db='Trimtabs') print 'mysql got connected.....' cursor=db.cursor() root=Tkinter.Tk() … | |
If I want to convert one type in another, I can use casts: [code]s = str(12.5) i = int(s) f = float(s)[/code] However, there doesn't seem to be a function cast, or even a statement cast. So how can I turn this string into a statement? [code]s = """for i … | |
hi ppl, i am kartik saxena , 2nd yr comp sc at Delhi College of Engineering Can anybody tell me about good python projects?? i hav recently completed a the backend server of our multiplayer quiz event known as techniche which will be released online soon . please visit: [url]www.dcetech.com[/url] … | |
how to open a new window only when i click menuitem. for example, check out this following code, in which Toplevel window comes up as soon as u run the code. i dont want that. i want the new window to open only when click 'one' in the menu bar. … | |
I need a python-based network library for a game, any sugestions? | |
how to get the file dialog window and save dialog window in python. for example if select the File menu we can see Open menu option, when we click on that we get file open dialog window similarly when we click save as.... /save option we can see file save … | |
I am making progress learning Python. and English. I understands tuples, lists and dictionaries, but sets don't make muchly sense. Why use a set? What is a set good for? | |
can anyone help me convert this vba script to python [CODE]On Error Resume Next Dim pMxDoc As IMxDocument Dim pMap As IMap Dim pCurve As ICurve Dim pFromPoint As IPoint Dim dXFrom As Double Dim bSrefFromMap As Boolean '======================= 'Adjust the parameter below 'bSrefFromMap = True ==> the coordinates will … | |
is there any tool like IDE which assists to develop the UI, like VB, drag and drop. i know that we get IDE with the Python package but we have to hard code for the UI. if there is any please suggest. | |
how to bind keyboard keys to menu items? i know to bind with mouse buttons but with keybooard keys dont know. for eg: [I]Cntl+O[/I] to open a file in File menu. how to implement undo, redo, find, find again, copy, paste functions in python. i actually gone through the IDLE.py, … | |
Hi, I would to know if there're some way to have a dump of all the threads started by a python process. I want to see the TID corresponding of each thread because I need them to get the CPU time of each thread by the command top. Thanks | |
1. hello, i have a set of questions, actually im developing a reporting tool where want to retrieve values from database and display that in the canvas in a formal reporting manner. can we take print out of content in the Canvas widget? (somewhat like, Data Report in VB) 2. … | |
Silly title, and I know a bit more Math then Computer Science (in fact I am a poor programmer). In my Python program - code below -I have an error message saying I have too many nested static blocks. It looks as if Python got stubborn on the 21st for. … | |
I'm trying to open an https file using python on windows: [url]https://www3.eub.gov.ab.ca/eub/dds/iar_query/ApplicationAttachments.aspx?AppNumber=1438224[/url] My current attempt was this: import urllib import urllib2 the_url = 'https://www3.eub.gov.ab.ca/eub/dds/iar_query/ApplicationAttachments.aspx' values = {'AppNumber':'1438224'} data = urllib.urlencode(values) req = urllib2.Request(the_url, data) handle = urllib2.urlopen(req) At this point i get an error: urlopen error unknown url type: https … | |
how to add a seperating line between menubar and toolbar in Python using Tkinter. is that possible using Tkinter. also how to add vertical seperating line to seperate toolbar buttons in toolbar. please help me out from this problem. | |
I've got a problem with replacing letters for a specific vector, stored in a file. The first file contains a list of "x = 0000101" like entries. The second file contains the target words in the 15th colom. I tried to use a dictionary containing the data of the first … | |
[COLOR=Navy]Yo, im new to Python and have been working on a personal project but can figure out how to save data to a file then read it in another program. im might have the writing down but cant tell bacause i cant read it. Iv been trying to work it … | |
can any body help me to add icons to the toolbar, i know that we have to use PhotoImage class to add but i'm not able to see the image in the toolbar. here is the code which i wrote, the following code is not an error, but im not … | |
Hey there. I'm new to Linux, and must install Scipy (Scientific Python) on my Suse 9.2 . I have the Numeric model installed already. I've used the RPM and I can import the scipy module, but when I try to run xplt then I get this horrible error lines, can … | |
how can i get the index number of a iterator? for instance: i wante to return the number of times ive gone through the loop. [CODE]list = [(mark, jacky,jane),(stick,cheri,nice),(elly,younces,pluto)] for i in list: print i[/CODE] this returns lists. but i want an output like: [CODE]>>1 >>2 >>3[/CODE] how do i … | |
Hi, after searching a lot , i got IDE SPE........ link for SPE [url]http://stani.be/python/spe/page_download[/url]........ but giving some problem........ my system is fedora core 4 ..... | |
hey yo's, i pretty much understand this function, except for the return value. i know that [I]string , string[/I] concats the strings. but what does the comma in the middle do when you have 2 different objects on either side as in the return value below? [CODE]def load_image(name, colorkey=None): fullname … | |
anyone have any idea? i need some suggestion urgently :sad: | |
Hi All, I want to remove a substring from a string without any additional tabs/returns in the output string. Is there any method availaible or how can I do it. For the ease, I am giving an example: [code] mainstr =""" ${if:isLeaf} Dont include this isLeaf=True ${/if:isLeaf} ${if:isStatic} include this … | |
Is it possible to limit the size of list in python. I want to make list of 5 elements. How can I achieve this thing in python. And one more thing can we declare list to store elements of same type as in c, C++ we can declare an array … | |
Hi everybody, I want to get the start and end of all the patterns mattched in regex. I know I can get it with start() and end() fn of matched objects. But re.search() return the match object of first matching regex in the string. I want all match objects in … | |
Is this correct? How do i fix the error? [CODE]for i in range(10): for j in range(10): if(list[i] != alpha[j])[/CODE] | |
A client just asked me to find him 2 F/T Python Programmers for their Orem, Utah office. I haven't gotten the tech specs yet, but I figured I'd get a jump on the gun and get some people prior to receiving specs. So if anyone is interested, please send me … | |
To process my data files I need whitespaces between all characters in a string, to be written to a text file. Is there a simple Pythonfunction to solve this? |
The End.