Re: MVC for wxWidgets or Tkinter?

2006-08-04 Thread Satya
samuraisam wrote:

> Are there any MVC-framework-like libraries for wxWidgets or Tkinter for
> Python? If so, any experiences with using them? I need to develop a
> desktop application *fast* and experiences with the likes of Turbogears
> have taught me that you can indeed develop very fast with a framework
> and the MVC structure seems to work very well.

I haven't used it personally, but Envisage from Enthought is supposed to be
one.

Satya


-- 
Posted via a free Usenet account from http://www.teranews.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Compiling wxPython app for Windows; Single EXE

2006-08-13 Thread Satya
Vincent Delporte wrote:

 
> - there's no way to build a single EXE, to make deployment easier (if
> multiple files, I need to build an installer with eg. NSIS or
> InnoSetup)?
>

I am using InnoSetup. The included example script (I believe in py2exe) is
adequate for simple applications. I just modified a few lines and I had a
neat Windows Installer.

Satya

-- 
Posted via a free Usenet account from http://www.teranews.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Best IDE for Python

2006-08-14 Thread Satya
[EMAIL PROTECTED] wrote:

> Hi All, What do you find the best IDE for creating web applications in
> Python is? Preferably FOS IDE.

WingIDE appears to be the best, especially if you are an Emacs user and are
used to its niceties. It is however, not free.

PyScripter is pretty good too -- light weight, lots of features.

Satya

-- 
Posted via a free Usenet account from http://www.teranews.com

-- 
http://mail.python.org/mailman/listinfo/python-list


multiple raw_inputs

2005-11-24 Thread Satya Kiran
Hi there!

I m a python newbie,infact,I m a newbie to programming and I was suggested it was a good idea to start it with python.

I was trying a program which needs three integers from the user.I got it by using raw_input thrice.
Is there a better way(s) to do it?
Can a user be prompted thrice with a single raw_input and something additional?


thanks in advance,

Kiran Saty
-- 
http://mail.python.org/mailman/listinfo/python-list

PyImport_ImportModule(..) returns NULL

2013-12-31 Thread python satya
Hi,
  I am new to python, am trying to use embedding python API's in
C,as below

I have my python file test.py in  "/var/tmp" path and trying to fetch
objects and functions from python script as below, but
PyImport_ImportModule("test") returning NULL always(instead adding /var/tmp
path to syspath)

Please let me know, how to solve this?

$% more /var/tmp/test.py
#!/usr/bin/python

import sys

input = ""

==
#include 
#include 
#include 

int main(void)
{
const char *scriptDirectoryName = "/var/tmp";
Py_Initialize();
PyObject *sysPath = PySys_GetObject("path");
PyObject *path = PyString_FromString(scriptDirectoryName);
PyList_Insert(sysPath, 0, path);
PyObject *pModule = PyImport_ImportModule("test");
if (pModule == NULL) {
fp = fopen("/var/tmp/abc.txt", "w");
fprintf(fp, "Fail to search in /var/tmp path");
fclose(fp);
} else {
   /* Read input object ... */
   }

Py_Finalize();
return 0;
}

====

$% more /var/tmp/abc.txt
Fail to search in /var/tmp path

Thanks,
Satya
-- 
https://mail.python.org/mailman/listinfo/python-list


Configuring IDLE on Linux

2006-07-13 Thread Satya Kiran
Hello,
I have upgraded to Python2.4 on my Red Hat 9.0 Linux box.
I want to work with IDLE and ran a search to check it's presence.
 Here is what I get.

[EMAIL PROTECTED] bin]# find / -iname idlelib
/usr/local/lib/python2.4/idlelib

[EMAIL PROTECTED] bin]# cd /usr/local/lib/python2.4/idlelib
[EMAIL PROTECTED] idlelib]# python PyShell.py
** IDLE can't import Tkinter.  Your Python may not be configured for Tk. **

How do I resolve this and get IDLE working?

thanks in advance,
Kiran Satya
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python proficiency test

2006-07-23 Thread Satya Kiran
I managed to take the test,though not it's entirety.
I am still far being proficient in Python,but I really liked the
thought-provoking questions in there.
thanks so much.


Kiran Satya


On 7/23/06, Ian Parker <[EMAIL PROTECTED]> wrote:
> In message <[EMAIL PROTECTED]>, Richard
> Jones <[EMAIL PROTECTED]> writes
> >Kent Johnson wrote:
> >> I recently helped create an on-line Python proficiency test. The
> >> publisher of the test is looking for beta testers to try the test and
> >> give feedback. If you are interested, here is an announcement from the
> >> publisher:
> >
> >Had a look. In between my browser blocking a popup on every page and the
> >registration asking far more details that I felt necessary, I stopped
> >before looking at the actual test.
> >
> >
> >Richard
> >
>
> Likewise, I wanted to see a sample test (for any subject) but couldn't
> do that without a long-winded registration procedure.
>
> Regards
>
> Ian
> --
> Ian Parker
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


a query on sorting

2006-09-27 Thread Satya Upadhya
Dear Friends,I am having a few issues with respect to sorting using python. I am usingPython 2.4.3 Win32 (IDLE 1.1.3).>>> x = [2,6,4]>>> x.sort()>>> x[2, 4, 6]>>> x = [2,6,4]>>> y = []>>> y = x.sort()>>> y>>> print yNoneSo the problem essentially is that i am unable to store the sortedelements of list x into an empty list y in a straightforward manner. I canget around this, of course, using the following:>>> x = [2,6,4]>>> x.sort()>>> x[2, 4, 6]>>> y = []>>> for i in x:y.append(i)>>> y[2, 4, 6]But this seems a little less succinct then one would expect from python.Also, consider the sorting of the indices of a sorted list. Consider thefollowing code:>>> x = [2,6,4]>>> import operator>>> sortedindices = sorted(range(len(x)), key = x.__getitem__)>>> print sortedindices[0, 2, 1]>>> x.sort()>>> x[2, 4, 6]>>>x (x = [2,6,4] originally) is the original list, and its indices are0,1,2. If you sort x, then x becomes [2,4,6] and the the list of thesorted
 indices becomes [0,2,1] since the 4 (which originally correspondsto index 2) has now shifted to a position corresponding to index 1 andlikewise for element 6.The equivalent matlab code for getting the sorted indices is much simpler:if x is a list (array) of values, then just write:[y,i] = sort(x);and y will be a list containing the sorted elements of x and i will be alist containing the sorted indices.Am i missing a trick here?Thanking you,Satya 
	

	
		 
Find out what India is talking about on  - Yahoo! Answers India  
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python in a group

2008-06-22 Thread Satya Kiran
You can count me in too.I've been into python for sometime now.
I agree that a collaborative learning makes it fun and helps you reach
your goal faster.
--
http://mail.python.org/mailman/listinfo/python-list


How to install py.xml plugin

2017-05-25 Thread Satya Rao
I wanted to install py.xml plugin. How to do that? Because this is using in 
pytest-html.

pip install py.xml says no packages found.

but in pytest-html they are importing this like below.
from py.xml import html

Thanks,
Satya
-- 
https://mail.python.org/mailman/listinfo/python-list