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

12 Posted Topics

Member Avatar for OffbeatPatriot

You could use os.system calls in your wxPython GUI to run Matlab from the command line. You can dump data into a text file (making sure to put an exit command at the end of the file otherwise the Matlab automation window won't close) and then call os.system('matlab -automation -r …

Member Avatar for uve
0
796
Member Avatar for clR3vv

It would appear to be a threading problem. Your calls using the .after function from the Label class are basically opening up new threads. The errors are very strange, which is indicative of thread issues. For instance, you will get the string 'zzzz' from the string 'aaa' with a 25 …

Member Avatar for clR3vv
0
331
Member Avatar for vmars

There is a large body of literature available for embedding Python code in a C program. The official reference for embedding in C can be found at [url]http://www.python.org/doc/current/c-api/[/url]. This may be of interest to you if you are looking to use Python code from a C program.

Member Avatar for Nine Tails
0
12K
Member Avatar for ning2009

I'm assuming that the data in: 1 J=2,7183 SEC=CON450X450 NSEG=2 ANG=0 56 J=7224,164 SEC=CON450X450 NSEG=2 ANG=0 is a string that you have read in from somewhere. If you are using code to generate these strings then you can vastly simplify things. I'm assuming that you also aren't too familiar with …

Member Avatar for ning2009
0
179
Member Avatar for ning2009

You could read everything in as a single string using read() and then use find() on the resulting string to determine the locations of the substrings that you are looking for. Once you know the locations you can easily do editing on any text in between. I don't see why …

Member Avatar for ning2009
0
214
Member Avatar for srk619

I think that you are asking for help in seeing that your function actually goes through all the steps of binary search on a list. Why don't you create a small test list and place a print statement in your code that displays the sublist that is sent back to …

Member Avatar for srk619
0
173
Member Avatar for murnshaw

In python variable types are not important. You should just assign x to your string and strike the line word = "x". This assigns word to the string x not to the string of the value stored in the variable x as you were probably intending. You also want to …

Member Avatar for Arrorn
0
1K
Member Avatar for dhvl2712

To gain access to hello.py in another module you could always use an import statement. In order to do this you will have to make sure that the module that you have saved is on the python path. The python path can be viewed by importing the sys module and …

Member Avatar for leegeorg07
0
527
Member Avatar for henryxxll

The thing that you are doing wrong is that you are not putting everything together into a single string. It is easiest to use string formatting in order to create the system command that you are looking for. For instance you can do the following: [code=python] program_str = 'python' args …

Member Avatar for henryxxll
0
3K
Member Avatar for Malestryx

This is by no means the cleanest way to implement this code. In order to complete what you are asking continue and break statements would mostly do the trick. If you include a continue statement after you print out an error message you will stop the next question from being …

Member Avatar for Malestryx
0
108
Member Avatar for Nine Tails

I am trying to create a widget that will display information for a large number of items. This widget needs to have the following properties: 1.) Highlights a line on a left mouse click 2.) Has an accessor function that can be used to retrieve the line number that is …

0
98
Member Avatar for vegaseat

If you are talking about the source code that they mentioned as being at [url]www.wrox.com[/url], I was able to find it at the following website: [URL="http://www.wrox.com/WileyCDA/WroxTitle/Beginning-Python.productCd-0764596543,descCd-DOWNLOAD.html"]http://www.wrox.com/WileyCDA/WroxTitle/Beginning-Python.productCd-0764596543,descCd-DOWNLOAD.html[/URL]

Member Avatar for vegaseat
0
217

The End.