Re: Time object?
On 8/1/07, Robert Dailey <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm well aware of the datetime module, however it is really inconsistent > and useless to me. In order to do any arithmetic on time objects, I have to > use the 'timedelta' class, which doesn't even allow me to do all the math I > want to do. > > For example, I want to do "1 / timeobj", where timeobj might represent a > time in the format of "00:00:00.00". Do I have to code my own class > for this, or is there some other third party library out there that will > allow me to do this? > > Thanks. > > -- > http://mail.python.org/mailman/listinfo/python-list > Convert each date you use to a timestamp, make all your calculations using those timestamps, and then when you need a date back just convert the desired timestamp to date time format of your choosing. -- Please visit this site and play my RPG! http://www.1km1kt.net/rpg/Marinci.php -- http://mail.python.org/mailman/listinfo/python-list
Re: module pickle
On Jan 9, 2008 5:29 AM, Beema shafreen <[EMAIL PROTECTED]> wrote: > Hi I am beginner in python. and I am not able to understand the Pickle > concept in python can. some body explain me about the use of this module, > few examples. which will help me a lot. > > regards > shafreen > > -- > http://mail.python.org/mailman/listinfo/python-list > You can find a good documentation of the pickle module here: http://docs.python.org/dev/library/pickle.html with exmaples to show you how you can use it. Pickle is used to serialize objects. What does that mean? In short you save your objects( remeber everything is an object in python, strings, lists, touples, dictionaries ...) to an external file (eg. object.pcl) for later usage( eg. you save your users personal data when exiting your software, and then you load it later when your software is restarted by the user. -- Please visit this site and play my RPG! http://www.1km1kt.net/rpg/Marinci.php -- http://mail.python.org/mailman/listinfo/python-list
Re: Pet Store
On Jan 8, 2008 7:32 PM, George Maggessy <[EMAIL PROTECTED]> wrote: > Yeap. It is. I'm looking for something like that app. Smth that I > could base my future developments on. > > On Jan 8, 1:47 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > On Mon, 07 Jan 2008 22:21:53 -0800, George Maggessy wrote: > > > I'm an experience Java developer trying to learn Python. I just > > > finished the Python tutorial on python.org and I'm currently reading > > > the "Learning Python" book. However, if I could find something like a > > > simple web app with some best practices, such as those famous "Java > > > Pet Store" apps, I think that would help me to fill up some gaps in my > > > learning process. Does anybody know any app like that? > > > > Isn't that a web application using Java web frameworks? So you are > > looking for a Python web framework with a "Pet Store" tutorial? > > > > Ciao, > > Marc 'BlackJack' Rintsch > > -- > http://mail.python.org/mailman/listinfo/python-list > If you are looking for a good , well documented , easy to use but powerfull web framework you deffinitely need to use Django. -- Please visit this site and play my RPG! http://www.1km1kt.net/rpg/Marinci.php -- http://mail.python.org/mailman/listinfo/python-list
Re: Python GUI toolkit
On Feb 4, 2008 8:18 AM, David Cook <[EMAIL PROTECTED]> wrote: > On 2008-02-03, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > what would be the best python GUI toolkit, it must be cross platform. > > > > i have tried gtk, but it interface are real bad and its coding was > difficult > > so i dropped it, > > > > the only remaining are qt4 and wx, i would like to know if one of these > or > > any other toolkit is capable of creating good-looking GUI's, like in > other > > apps, for e.g, .net apps. > > > > i m a noob, and willing to learn, so difficulty is no problem > > The real way to see is by installing each along with their respective > demos, > looking over some of the demo code, and perhaps coding some simple apps in > each. > > Qt4 has the most polished and complete API. When judging looks under the > X-Window System, make sure to run qtconfig and try some of the other > themes. > > WX seems to have more design warts (the layout system takes some getting > used to), but is quite capable and flexible and probably has the most > native > look and feel under win32. The license is much more liberal for > commercial > use. Also, it comes with OS/X (both Tiger and Leopard), is easy to > install under MSWindows). I wouldn't agree with you on that. I use wx on both windows and gnome respectively, and on both platforms wx widgets look and feel native. The layout system is really simple to use, but powerfull, and if you've done some web design in the past you are going to wrap your head over it just after a few examples. I think the most powerfull feature of the wxwidget toolkit it's a very consistent API. Each widget is created in a very similar manner, so is very easy to pick and implement new features of the widget. Which can speed up the learning process quite a bit. I would sincerly hope to see in the future a python distribution that incorporates wxwidgets as its basic gui toolkit instead of tkinter. > > > Dave Cook > -- > http://mail.python.org/mailman/listinfo/python-list > -- Please visit this site and play my RPG! http://www.1km1kt.net/rpg/Marinci.php My Poetry Book: http://www.lulu.de/browse/book_view.php?fCID=222964&fBuyItem=5 My OS Projects: http://lab.linux.hr/~nstjelja/drawit/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Why not a Python compiler?
If you want to create standalone python applications I'd suggest you to use PyInstaller which is an excellent application that boundles everything you need to run your application in a standalone package. It works on windows, linux and I think mac but i'm not sure. On Feb 5, 2008 10:25 AM, James Matthews <[EMAIL PROTECTED]> wrote: > You can also compile parts of Python to speed them up! > > > On Feb 5, 2008 9:37 AM, Kay Schluehr <[EMAIL PROTECTED]> wrote: > > > On Feb 5, 9:19 am, Santiago Romero <[EMAIL PROTECTED]> wrote: > > > ( Surely if this question has been asked for a zillion of times... ) > > > > Sure. You can access comp.lang.python via google.google.com. It has a > > search function. > > > > > > > > -- > > http://mail.python.org/mailman/listinfo/python-list > > > > > > -- > http://search.goldwatches.com/?Search=Movado+Watches > http://www.jewelerslounge.com > http://www.goldwatches.com > -- > http://mail.python.org/mailman/listinfo/python-list > -- Please visit this site and play my RPG! http://www.1km1kt.net/rpg/Marinci.php My Poetry Book: http://www.lulu.de/browse/book_view.php?fCID=222964&fBuyItem=5 My OS Projects: http://lab.linux.hr/~nstjelja/drawit/ -- http://mail.python.org/mailman/listinfo/python-list
Re: wx
The module you are talking about is a python GUI toolkit named WxPython, which is a port of the cross platform C++ GUI toolkit wxwidgets. It's an excelent gui toolkit , easy to learn and code on. Well documented and has an excelent community around it. Here are the links for both sites: http://www.wxpython.org/ http://www.wxwidgets.org/ On Thu, Sep 11, 2008 at 8:16 PM, Desmond Scott E <[EMAIL PROTECTED]> wrote: > I'm am a Python novice by chance not choice. (Although it appears to be > a nice tool. Plus anything based on Monte Python can't be bad!) > > My Quest is to migrate a Python-based process from Windows2000/Python > v2.4.2 (#67) to WindowsXP/Python v2.5.2 (r252:60911). > > I've searched the Python website and could find no reference to module wx. > Is this an add-in module or perhaps it was replaced in v2.5.2??? > > References in the code are: > wx.ListCtrl.__init__(self, parent, -1, style=wx.LC_REPORT) > self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated) > self.SetColumnWidth(0, WX.LIST_AUTOSIZE)) > idx = self.GetNextItem(idx, wx.LIST_NEXT_ALL, wx.LIST_STATE_DONTCARE) > > Any help would be greatly appreciated! I do have Shrubbery! > > Scott > > Scott E. Desmond > Director & Manager Equity Systems Development > IT Integration Lead > Mellon Capital Management Corporation > 500 Grant Street, Suite 4200 > Pittsburgh, PA 15258 > T 412.236.0405 | F 412.236.1703 > [EMAIL PROTECTED] | *www.mcm.com* > > *The information contained in this e-mail may be confidential and is > intended solely for the use of the named addressee.* > *Access, copying or re-use of the e-mail or any information contained > therein by any other person is not authorized.* > *If you are not the intended recipient please notify us immediately by > returning the e-mail to the originator.(16b)* > ** > Disclaimer Version MB.US.1 > > -- > http://mail.python.org/mailman/listinfo/python-list > -- My Blog: http://mylifeasadeveloper.blogspot.com/ My home page: http://www.inet.hr/~nstjelja My Poetry Book: http://www.lulu.de/browse/book_view.php?fCID=222964&fBuyItem=5 My OS Projects: http://lab.linux.hr/~nstjelja/drawit/ -- http://mail.python.org/mailman/listinfo/python-list