Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #1K
~11.9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for fugmag

.project is a specific file that is placed in every project. The error message makes it sound like there is a .project file in the workspace folder (which should not be there). If you navigate to the workspace directory and delete the .project file, it should work correctly.

Member Avatar for fugmag
0
70
Member Avatar for CharlieNewey

the problem is on line # 157, you are looping from 0 to n, but are using n in the equation. So 'y = (math.exp(a) * math.e) ** (b * n)' should be 'y = (math.exp(a) * math.e) ** (b * i)'(if I understand the math correctly). you may also …

Member Avatar for CharlieNewey
0
685
Member Avatar for mece

Hmmm, well the only way that I can think of off the top of my head would be to create a thread that will replace the event timer. that thread would then execute a loop that will sleep for a period of time then refresh the panel when it wakes …

Member Avatar for mece
0
2K
Member Avatar for FAITH2011

you may want to try pretty print (pprint), and change the indent to whatever you need to print it out in the middle of the screen (I put a link on the bottom of this post). I have never used pprint in this way so that may or may not …

Member Avatar for FAITH2011
0
161
Member Avatar for jludeman

Hello jludeman! This is a really nice and simple test program, is this your first time using wxPython? Anyways, onto your questions/problems: I think in line 7 that you can use "./*.jpg" to get all of the .jpg in the current directory, but this is untested so it may not …

Member Avatar for jludeman
0
268
Member Avatar for M3M69

Where is your code for the dictionary actually located? I think the problem you are having is that you are trying to access a variable that is out of scope (and therefore doesn't exist). If you are trying to access the variable actor in the function process_file, you will not …

Member Avatar for winmic
0
87
Member Avatar for winmic

Is there any way to set the maximum size of a ListBox (by pixels)? I know that there is a SetMaxSize but it is not enforced.

Member Avatar for phunehehe
0
707
Member Avatar for moonlite25

you could just create a copy of numDivisions at the start of the function then use the copy of numDivisions whenever you want the original value.

Member Avatar for TrustyTony
0
76
Member Avatar for Kruptein

From my understanding all you would need to do is: [CODE] self.ID_OPEN=wx.NewId() wxglade_tmp_menu.Append(self.ID_OPEN, "&Open", "", wx.ITEM_NORMAL) self.menubar.Append(wxglade_tmp_menu, menutitle) self.Bind(wx.EVT_MENU, self.ttt, id=self.ID_OPEN)[/CODE] I'm pretty sure that wx.NewId() will get a new ID that is not in use. This has always worked for me!

Member Avatar for Kruptein
0
141
Member Avatar for soUPERMan

In line 46, you're not actually calling the method. Try self.getMemberTypeString() in line 46 instead of self.getMemberTypeString.

Member Avatar for soUPERMan
0
113
Member Avatar for baskar007

Have you tried looking at the python docs? [url]http://docs.python.org/[/url] A quick search there got some promising results.

Member Avatar for baskar007
0
148
Member Avatar for nizbit

Actually, cPickle does both saving and loading, with cPickle.dump and cPickle.load respectively.

Member Avatar for winmic
0
88
Member Avatar for sravan953

You need to bind the event to the menu, not left_click. Try self.Bind(wx.EVT_MENU,self.Quit,id=201) instead of self.Bind(wx.EVT_LEFT_DOWN,self.Quit,id=201)

Member Avatar for vegaseat
-1
3K
Member Avatar for sravan953

Your going to have to GetValue() in a function of some sort, after user input. I suggest binding to some event, either EVT_TEXT, EVT_TEXT_ENTER and GetValue() there, or place some sort of button that the user can push when they're done with input.

Member Avatar for snippsat
0
677
Member Avatar for saikeraku

It's close but it's still not perfect. Try this code: [CODE]purchased = float(raw_input("Enter the total purchased: $")) if purchased >= 1000: total = purchased - ( 0.20 * purchased ) elif purchased >= 500: total = purchased - ( 0.15 * purchased ) elif purchased >= 200: total = purchased …

Member Avatar for masterofpuppets
-1
151
Member Avatar for tweak

Check out [url]http://zetcode.com/wxpython/dialogs/[/url] . It has a brief overview of the things you can do with Dialogs.

Member Avatar for winmic
0
95
Member Avatar for Stefano Mtangoo

Well, this is certainly a loaded question. First thing to do is to save two copies of the query results so there is a working copy, and an original copy. Then I would bind to EVT_LIST_END_LABEL_EDIT from the wx.ListCtrl, that way you know when a label has possibly been change. …

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for akindo

It sounds like you want to modify the root logger, so [ICODE]fileLogger = logging.getLogger('DIFRECFILE')[/ICODE] should be [ICODE]fileLogger = logging.getLogger('')[/ICODE] to get the root logger instead of creating a new one. Explaination: Your problem is coming from your 4th line. When you call logging.getLogger('DIFRECFILE') it will try to find a logger …

Member Avatar for akindo
0
3K
Member Avatar for sravan953

From a first glance it looks like the problem is: [ICODE]print s1[a:a+2][/ICODE] which should be [ICODE]print s1[0][a:a+2][/ICODE] because s1 is a list with only one element (the string s), and you want to output the range of characters in the string not the range of elements in the list. You …

Member Avatar for zachabesh
0
94
Member Avatar for winmic

Hey all, I just recently got into wxpython for my job and I ran into a snag. When print previewing (using the demo code) there seems to be an insane amount of pages, yet only a few of them are viewable. So my questions are: 1) Why is there an …

Member Avatar for vegaseat
0
99