On 25/07/13 00:23, Jonathan Hong wrote:
because of my lack of computer knowledge. When I do put in python
helloworld.py into the command prompt line, the computer gives me a
response of: "python: can't open file 'hello.py': [Errno 2] No such file
You need to supply the full path to the file (o
I am defining multiple classes (some of them are threads)
I have been writing Python programs for a few months, but never faced this
issue so far unless I am doing something different inadvertently. The only
difference I see is that I am calling the methods belonging to other
classes, from a class
On 08/08/13 17:23, SM wrote:
I am defining multiple classes (some of them are threads)
I have been writing Python programs for a few months, but never faced
this issue so far unless I am doing something different inadvertently.
The only difference I see is that I am calling the methods belonging
Ramit:
Thanks for the quick response. You are right about the error. When I did
the following:
x = Ui_MainWindow()
x.setStdoutToTextEditWindowFw()
I got the following error:
AttributeError: 'Ui_MainWindow' object has no attribute
'textEdit_fwcmdlineoutput'
But I do have code that creates an attri
Hi Alan,
Thanks for your quick and detailed reply.
I guess what you are suggesting is very similar to what I am doing (of
course not when I use the class. I tried using the class when I couldn't
figure out why it gave error when I used the object). Looking at your
example, I ended up doing exactly
On 08/08/13 21:24, SM wrote:
example, I ended up doing exactly what you suggested. I am sure I am
missing something, as it is giving the same error:
Here is what I am doing based on your suggestion:
class bcThread(threading.Thread):
def h(self, y):
y.setStdoutToTextEditWindowFw()
Is it necessary that the call should be in __init__? The widget is very
much getting created and I have the line (copied again here) under a method
setupUi() under Ui_MainWindow:
class Ui_MainWindow(object):
[snip]
def setupUi(self, MainWindow):
[snip]
self.textEdit_fwcmdli
On 08/08/13 21:24, SM wrote:
example, I ended up doing exactly what you suggested. I am sure I am
> missing something, as it is giving the same error:
> Here is what I am doing based on your suggestion:
>
> class bcThread(threading.Thread):
> def h(self, y):
> y.setStdoutToTextEditW
On 08/08/13 22:03, SM wrote:
[SM] Sorry that I didn't add that part. setupUI is called from the main
as below:
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
Main
On 08/08/13 23:02, eryksun wrote:
You are creating a new instance inside your run() method but
the call in main() only sets it for the instance created in
main. It won't set it up for any other instance. You need
to call it every time you create a new object. Unless
If you put it in init()
if the variable is the range in the first one, then just don't append it,
and replace it with something else.
The second, you use cnt2, but it is a part of the the list comp, but not a
variable:
#this is in [ython 3, but you can import from future, or remove quotes from
print parameters
lst = [cn
Hi,
It just plot one line. How to print several lines?
I've attached your example and I've corrected my own 3d code which works now
but it is not an animation. So how can I plot it using the code you gave me?
By the way, I think you know that I'm trying to plot for n-body problem?
Have you made
This looks quite clean! Since posting this question I have cleaned up this
script by using multiple functions, but it still isn't this clean! My data
is a normal CSV table with column headers. It isn't in a dictionary format
like your sample data here. I'm sure I could switch it to that format
thou
Hello,
I am working through Michael Dawson's book, "Python Programming for the
absolute beginner 3rd edition".
Have just completed Chapter 3, but cannot solve Challenge 4.
Has anyone solved this yet - and be willing to share this code?
I would much appreciate..
John.
__
I've also found this to be helpful:
http://www.diveintopython.net/toc/index.html
It's a little dated but most of the information still applies.
On Mon, Jul 29, 2013 at 10:29 AM, Rene Datta wrote:
> Hi:
>
> I was wondering if anyone could suggest a good quality online resource
> tool or compen
In other words lst is a global variable, where as cnt2 is a local variable
to just the list comps completion of the data being diplayed in the list
comp, with each cnt2 in the global var lst being contained in the list
comp, but only accessible through iteration/placing/splicing of the lst
variable
Hi All,
I am facing a problem for constrained linear least square fitting. In my
case the matrix equation looks like [Y]nX1=[X]nXm[P]mX1, where Y and P are
vectors and X is a matrix and n, m are dimension of the matrix. Further,
there is a equality constraint on P which is Sum(P(i))=0.0. How do I
you can either manually manage the memory with `del cnt` or let the built
in memory management .. manage the memory.
On Wed, Aug 7, 2013 at 10:54 PM, Jim Mooney wrote:
> This bugs me for some reason. The final variable is saved in a for
> loop but not in a list comprehension. It just seems to me
On 08/08/13 18:05, John Feleppa wrote:
I am working through Michael Dawson's book, "Python Programming for the
absolute beginner 3rd edition".
Have just completed Chapter 3, but cannot solve Challenge 4.
Has anyone solved this yet - and be willing to share this code?
If you give us a clue wh
On 07/08/13 22:37, sudipta wrote:
this? I saw few of discussion on scipy.optimize.fmin_slsqp() function
but the implementation of this function is not very straightforward.
Therefore, I need your help. I am new in SCIPY. Please help me out in
This list is really aimed at newcomers to Python an
>>I'm confused. Why does the OP want multiple instances of the user
interface widgets?
> He may not, but he is creating them! But it is possible he does want
multiple duplicate windows, one monitoring each thread. (eg progress
dialogs on an FTP program). Since I don't know the context I'm
assuming
On Thu, Aug 8, 2013 at 7:15 PM, Joel Goldstick wrote:
> On Thu, Aug 8, 2013 at 9:52 PM, SM wrote:
>
> >
> > OP is me? Not sure what it stands for, but I am a 'she' :)
>
> FYI (For you information) OP means Original Poster. Although people
> do refer to names in replies here, the term OP is used
22 matches
Mail list logo