15,180 Topics

Member Avatar for
Member Avatar for Alexander1987
Member Avatar for katharnakh

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 …

Member Avatar for bumsfeld
0
1K
Member Avatar for bumsfeld

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?

Member Avatar for bumsfeld
0
243
Member Avatar for abell1234

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 …

Member Avatar for bumsfeld
0
240
Member Avatar for katharnakh

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.

Member Avatar for bumsfeld
0
102
Member Avatar for katharnakh

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

Member Avatar for bumsfeld
0
289
Member Avatar for Cidadell

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

0
71
Member Avatar for katharnakh

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

Member Avatar for vegaseat
0
100
Member Avatar for bobpierce01

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

Member Avatar for alc6379
0
386
Member Avatar for hummer010

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 …

Member Avatar for alc6379
0
194
Member Avatar for katharnakh

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.

Member Avatar for katharnakh
0
2K
Member Avatar for Steko

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 …

Member Avatar for Steko
0
408
Member Avatar for Ghent

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

Member Avatar for katharnakh
0
170
Member Avatar for katharnakh

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 …

Member Avatar for vegaseat
0
187
Member Avatar for uv2005

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 …

Member Avatar for vegaseat
0
138
Member Avatar for senateboy

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 …

Member Avatar for vegaseat
0
152
Member Avatar for ajitmote

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

Member Avatar for vegaseat
0
163
Member Avatar for senateboy

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 …

Member Avatar for vegaseat
0
168
Member Avatar for davalend
Member Avatar for ankit_rastogi82

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 …

Member Avatar for vegaseat
0
181
Member Avatar for ankit_rastogi82

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 …

Member Avatar for ankit_rastogi82
0
185
Member Avatar for ankit_rastogi82

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 …

Member Avatar for ankit_rastogi82
0
145
Member Avatar for k_en

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]

Member Avatar for k_en
0
117
Member Avatar for superiorss

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 …

0
100
Member Avatar for Steko

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?

Member Avatar for Steko
0
83
Member Avatar for ankitrastogi82

Python itself has xml parsers and dom support. So if we install PyXml what additional features or advantage we get on using pyxml. Why should I use PyXml? Anyone please provide the briefing.

0
76
Member Avatar for bruno

Trying to get pypod working, and being stuck with "Umlaut" like öäü in filenames (linux) - linux suse 9.3 with iPod patch from Sven Andersen (kaputtendorf) - filenämes.mp3 have umlaut - with much cheeting (explicit translation), I got char>128 translated into unicode (e.g. "ä"=ascii=132, unicode=228) and actually written onto iPod's …

0
54
Member Avatar for juergenkemeter

Hi there, Here is a (hopefully) convenient description of my situation: - I have a main folder, containing several subfolders. - Every (sub)folder contains one or more .xls - Workbooks. - Every Workbook contains one or more different Spreadsheets. - The workbooks contain some cells which have Hyperlink addresses to …

Member Avatar for bumsfeld
0
181
Member Avatar for bobthetree

I was working on a python project that was open source and had some questions about a problem I am having. Some background: I am proficient with Java and C++, so I know how to code, however this is my first attempt at Python. Using windows, and have python 2.4 …

Member Avatar for bumsfeld
0
103
Member Avatar for k_en

I can do a control loop like this in C++ [CODE]int case =0; while( case<0 && case>20){}[/CODE] How am i suppose to implement this in Python? I didn't get any errors if i wrote this, the problem is it doesn't enter the while loop when case<0 and case>5 [CODE] while …

Member Avatar for bumsfeld
0
141

The End.