15,181 Topics

Member Avatar for
Member Avatar for tondeuse34

Hey guys, I've started using Tkinter now and I've came across a problem...Here in the code below i just want a drop box style menu to appear and when i click that option, theres more options. When i click for example their would be a box called Addition, you would …

Member Avatar for Capt.Micro
0
119
Member Avatar for Mackjan

Hi How can I stop a loop, this function sort my list as I wish but I want to stop it when it done the task. I have a list x = [4,4,2] and during 15 attempt I want to sort it like that x = [1,2,3,4], if the function …

Member Avatar for Mackjan
0
108
Member Avatar for jmroach

I am trying to add entries to a dictionary with the following loop: [CODE=python] for p in pressures: q70in.resetKeyword( "expansionRatio", p ) q70in.writeInput( prefix + tempInput ) commands.getstatusoutput( runq70 ) q70out = q70.Q70Output( prefix + outputFile ) results[p] = {} #results[p]['Performance'] = q70out.performance results[p]['Conditions'] = q70out.conditions print q70out print results …

Member Avatar for jmroach
0
149
Member Avatar for wonkychair

Hi all, I'm pretty new here and I'm also pretty new to Python. I'm planning this application that would scan a plugins directory on startup and add one tab for each plugin to the main wx.Frame. Now, I got this simple plugin example working, that printed a line from the …

0
68
Member Avatar for sam_only96

Hi All ! Glad to become a part of DaniWab IT Discussion. This is Samar a beginner to Python programming . I am from Bangalore India. Having a lot of Questions and a huge ambition i am here with you.I am too friendly , too open minded and cool my …

Member Avatar for jbennet
0
109
Member Avatar for tondeuse34

Hey guys, is it possible to simulate a mouse click using x and y co-ordinates. And also could you have user input of a certain co-ordinate and it would click that specified co-ordinate? thanks.

Member Avatar for tondeuse34
0
2K
Member Avatar for alasseon

Hello, All: My first post... I've looked high and low for the ability to write a Chinese language text string in a program. For example: myString = "你好" So that if you say: print myString on the console you will see: 你好 But I have yet to be successful. First …

Member Avatar for alasseon
0
109
Member Avatar for Altarium

I've got a small bit of code I need to convert to C#. However my experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to …

Member Avatar for Typhon
0
543
Member Avatar for sam_only96

Hi All ! "Do win32all work well in Vista box can anyone show me how to start and stop a service in vista ,i have working code for window xp and 2k"

Member Avatar for sneekula
0
36
Member Avatar for afi88

Hi. I have a problem with a physics assignment I have to finish by tonight. They have already given me a python code, but I have to find the period T of Jupiter through interpolation. (It doesnt have to be interpolation, but my teacher recommended it.) This is the program: …

Member Avatar for sneekula
0
130
Member Avatar for lllllIllIlllI

Hi I was making a program that tried to open firefox like this: [code] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') [/code] but i get an error [icode] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') File "C:\Program Files\Mozilla Firefox\firefox.exe", line 1 SyntaxError: Non-ASCII character '\x90' in file C:\Program Files\Mozilla Firefox\firefox.exe on line 1, but no encoding …

Member Avatar for lllllIllIlllI
0
120
Member Avatar for jrcagle

So I have this nifty wxPython widget -- a Cartesian Coordinate plane with scrolling ability. Three issues: (1) On scrolling outwards, I set it to resize itself, which seemed like a reasonable plan. But the resizing is very choppy. Is there any way to capture the last wx.SIZE event instead …

0
81
Member Avatar for ssDimensionss

Hi i have a CSV file that looks something like this: Name ASX_Code Date SharePrice ACACIA RESOURCES AAA 19990630 1.75 ACACIA RESOURCES AAA 19980630 1.72 ABSOLUTE RETURN FUND UNIT AAB 20040625 0.9 ABSOLUTE RETURN FUND UNIT AAB 20030630 0.85 AUSTRALIAN AGRICULT. AAC 20070629 2.95 AUSTRALIAN AGRICULT. AAC 20060630 1.935 AUSTRALIAN …

Member Avatar for bvdet
0
177
Member Avatar for tefflox

I am designing a small, commercial website that requires an administration page where the owner can upload photos and update the inventory table. It was coming along just fine until I found out, by brute force, that Dreamhost does not allow a PHP script to execute the Image Magick commands …

Member Avatar for jrcagle
0
123
Member Avatar for Shadow14l

Whenever I open a page with urllib or urllib2 (file = urllib.urlopen(urllinkhere)) and when I print it, I get this: [IMG]http://i121.photobucket.com/albums/o229/Shadow14l/boxes1.gif[/IMG] See all the square boxes? Unknown characters or something... Well they are and represent the returns (new lines). If I saved this to a text file, all the boxes …

Member Avatar for Shadow14l
0
104
Member Avatar for FreezeBlink

There's a function that repeatedly shows up in languages, usually with more or less the following form (Python syntax): [code=Python]var1 = raw_input("Input a number between one and three.") choose var1: case "1": print "You inputted one." case "2": print "You inputted two." case "3": print "You inputted three."[/code] Or something …

Member Avatar for kdoiron
0
1K
Member Avatar for deepakedward

I have been trying to install Pymmlib for viewing and manipulating mmcif files for my Bio informatics project but i can seem to get it installed it shows that a lot of dependencies are missing can anyone please tell me how i can successfully make this work also where do …

0
60
Member Avatar for harakiri1976

Hi Guys! I am trying to make a simple and very basic Database in Python. Something, like a small agenda with contacts. I make a dictionary within the script and I was trying to update that info with new Input data. The problem is that I am not sure I …

Member Avatar for woooee
0
113
Member Avatar for tkpython

Hi just wonderin if anyone can help with my GUI, I got this far, but want to have an image on the background of the main app, and also the buttons. Ive read through vegaseat's script which he helped someone on here, but somehow I can implement his code into …

Member Avatar for ZZucker
0
179
Member Avatar for swaroopk85

Hi all, Is there any module for undefining proxy for https in python like $agent->proxy( 'https', undef ); in perl

Member Avatar for swaroopk85
0
39
Member Avatar for jascase901

i am trying to teach myself python using this book called, core python programing by wesley chung. one of the exersises in this book says make a text based menu application that uses more than one of the programs you made already.When i made the application one of my code …

Member Avatar for tondeuse34
0
88
Member Avatar for lllllIllIlllI

Hi I have been looking around for some good tutorials but i havent been able to find any especially for networking. i was wondering if anyone in the community could help. thanks

Member Avatar for jrcagle
0
110
Member Avatar for unpolloloco

I am quite the beginner at python (and programming altogether), but I'm attempting to learn (slowly but surely). Anyway, I am attempting to make a standalone python program that will interact with firefox (opening links, etc.). I've figured out how to open FF and open links. However, for the life …

Member Avatar for unpolloloco
0
104
Member Avatar for Mackjan

How can i create a function which sort a list in this way for example if list 4,4,2 4,4,2 3,3,1,3 2,2,0,2,4 1,1,0,1,3,4 0,0,0,0,2,3,4 0,0,0,0,0,1,2,3,4 If the list is impossible to sort then the program have to try it 15 times not more. The function which I wrote does it only …

Member Avatar for Mackjan
0
78
Member Avatar for Seagull One

Hello everyone! I haven't programmed in quite a while and now that I'm getting back into the programming environment for my robotics project again, I'm a little stumped on something: I'm getting this error message for an exception raised in my VAST python script for my robot. It goes like …

Member Avatar for Seagull One
0
385
Member Avatar for ssDimensionss

hi, im learning to use python at the moment and i came over a question where it gives me a large csv file with names of companies and how much they are earning and i was asked to find the top 10 companies..i orignially did this: [code] import urllib import …

Member Avatar for jrcagle
0
3K
Member Avatar for kdoiron

I hope people don't mind seeing references to other forums here. I'm a regular at [URL="http://www.python-forum.org"]www.python-forum.org[/URL] but lately I've been having problems with the site. Last week, I couldn't post anything for two days, but that seems to be resolved. Now, I can't even log in. I get a "406" …

Member Avatar for Ferroman
0
143
Member Avatar for sch0009

Hi there, I have a data set ([url]http://app.lms.unimelb.edu.au/bbcswebdav/courses/600151_2008_1/datasets/entertainment/moviestats_large.csv)[/url], and i was just wondering the best way of tackling the question stated below: Which director is the most productive? I an new to python and wondering if anyone could help me out a little on this problem. I have considered trying …

Member Avatar for bvdet
0
245
Member Avatar for drjekil

i have a script which will do a specific task for a file in a folder,now i would like to do the same task for the all files in that folder(25 files).how can i do that? Thanks in advance.

Member Avatar for ZZucker
0
79
Member Avatar for swaroopk85

Hi All, We have been using http_class in urllib2.py ,_http.py and calling its various methods like h = http_class(host) # will parse host:port h.set_debuglevel(self._debuglevel) h.request(req.get_method(), req.get_selector(), req.data, headers) h.getresponse() I am searching this class in the python directory but I could'nt find any.. DO we need to download this separate …

Member Avatar for swaroopk85
0
96

The End.