Re: Missing rotor module
Le Tue, 25 Jul 2006 12:22:26 -0700, Nick Vatamaniuc a écrit : > Unfortunately rotor has been deprecated but it hasn't been replaced > with anything reasonable as far as encryption goes -- there are just a > bunch of hashing funtions (sha, md5) only. If you need to replace rotor > all together I would sugest the crypto library from: > > http://www.amk.ca/python/code/crypto.html > > It has good encryption algorithms like AES, IDEA and others. > > I know it doesn't have rotor, because rotor is not a very good > encryption algorithm -- I still don't know why it was ever included in > Python. So refactor your code if you can to use AES for example. > > But of course if you have bunch of data encrypted with rotor that your > program need to decrypt you can use this replacement found on > mail.python.org: > http://mail.python.org/pipermail/python-list/2005-January/261304.html > It is much slower because it was written in Python while the original > rotor was in C, and I am not sure if it is _exactly_ the same. > > Good luck, > Nick V. > > > rony steelandt wrote: >> I'm in the midle of porting a python 1.5 application to 2.4 >> >> I just discovered that the rotor encryption module isn't part anymore of >> the 2.4 distribution. >> >> Is there a way to add this module to 2.4, or what would be the simplest >> way to replace this. >> The existing application makes use of the rotor module everywhere, which >> means in a lot of modules. >> >> Thanks for any ideas >> >> Rony Thank you Nick At least I can read the existing data. i'll evaluate if i should continu to use this or implement another encryption. Rony -- http://mail.python.org/mailman/listinfo/python-list
Missing rotor module
I'm in the midle of porting a python 1.5 application to 2.4 I just discovered that the rotor encryption module isn't part anymore of the 2.4 distribution. Is there a way to add this module to 2.4, or what would be the simplest way to replace this. The existing application makes use of the rotor module everywhere, which means in a lot of modules. Thanks for any ideas Rony -- http://mail.python.org/mailman/listinfo/python-list
Re: Isn't there a better way?
Le Fri, 21 Jul 2006 07:51:15 -0700, T a écrit : > > I am using an optparse to get command line options, and then pass them > to an instance of another class: > > > > # Class that uses optparse.OptionParser > foo = Parse_Option() > > # Class that does the real work > bar = Processor() > > bar.index = foo.options.index > bar.output = foo.options.output > bar.run() > > > > This works, but it feels hokey or unnatural to "pass" data from one > class to another. Isn't there a better way??? I don't know what both classes do, but can this be a solution ? class Processor(Parse_Option) self.index = self.option.index self.output = self.option.output def run(self): # code bar.run() Rony -- http://mail.python.org/mailman/listinfo/python-list
Re: Project organisation
Le Wed, 19 Jul 2006 14:31:06 +0100, Phil Thompson a écrit : > On Wednesday 19 July 2006 3:12 pm, rony steelandt wrote: >> Imagine I have x projects and they all use util.py >> >> What would be the best way to organise this >> >> 1. >> c --\project1\*.py >> >> |-\project2\*.py >> >> --\globals\util.py >> >> This organisation has the problem that if I have to modify something to >> util.py that I need in project2, I'll have to retest project1 to make sure >> it still works (that could be project 1..n). >> >> 2. >> A copy of util.py in each project directory ? The advantage is that I can >> modify each util.py in function of the need of the project but it looks >> clutered, having n versions of util.py. >> >> What is the best solution ? or is there another even better solution ? > > You could introduce version numbers to your module hierarchy... > > --\globals\v1-0\util.py > \v1-1\util.py > \v2-0\utill.py > > ...then in your code do something like... > > from globals.v1-0 import util > > ...which would allow some sharing without needing to retest. > > Phil Yes, this actually looks like a very good idea, without the need of retesting everything Rony -- http://mail.python.org/mailman/listinfo/python-list
Project organisation
Imagine I have x projects and they all use util.py What would be the best way to organise this 1. c --\project1\*.py | |-\project2\*.py | --\globals\util.py This organisation has the problem that if I have to modify something to util.py that I need in project2, I'll have to retest project1 to make sure it still works (that could be project 1..n). 2. A copy of util.py in each project directory ? The advantage is that I can modify each util.py in function of the need of the project but it looks clutered, having n versions of util.py. What is the best solution ? or is there another even better solution ? Rony -- http://mail.python.org/mailman/listinfo/python-list
Re: TextCtrl focus events in wxWidgets
Since the event handler of a textctrl inherits from wxCommandEvent, I would guess that the binding should be to EVT_COMMAND_KILL_FOCUS Not tested... Rony Le Wed, 19 Jul 2006 03:15:36 -0700, Simon Hibbs a écrit : > > Steve Holden wrote: > >> It should be quite simple: you need to handle EVT_SET_FOCUS and/or >> EVT_KILL_FOCUS events (documented in the wxPython docs) to know when to >> recaclulate the values. Sounds like that should be enough of a hint to you. > > I've tried that, but it doesn't work. Here is the test code: > > self.PlantCtrl = wx.TextCtrl(self, -1, "") > > self.Bind(wx.EVT_KILL_FOCUS, self.OnUpdatePlantCtrl, > self.PlantCtrl) > > def OnUpdatePlantCtrl(self, event): > print "set Plant" > > When the control loses focus, I don't get the message in the console. > I'm trapping other events successfuly elsewhere using similar code. > > Simon Hibbs > . -- http://mail.python.org/mailman/listinfo/python-list
Re: Newbie
Le Thu, 13 Jul 2006 12:45:44 +0100, Gueorgui Vaskes a écrit : > Could anyone feel me in what do you mostly use python for? > > > > ___ > The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html Full db client-server applications. Python is our main developpement tool here. See www.bucodi.com Rony -- http://mail.python.org/mailman/listinfo/python-list
Troubles with SQLDict
I would like to use SQLDict against a MS SQL server database, but got stuck at the very beginning import pymssql import SQLDict # Connect to database c=pymssql.connect('192.168.1.13:dblisamaster:sa') db = SQLDict.SQLDict(c) class VAT(SQLDict.ObjectBuilder): table = 'TBLVat' columns = ['VATID','VATLabel'] update_columns = columns indices = [('ID',['VATID'])] VAT().register(db) db.TBLVat.loc['1'] the last instruction gives me the error : -- Traceback (most recent call last): File "./bureau/test.py", line 19, in ? db.TBLVat.loc['1'] File "C:\Python24\lib\SQLDict.py", line 155, in __getattr__ return getattr(self.db, attr) AttributeError: pymssqlCnx instance has no attribute 'TBLVat' -- This is allmost a copy of the instructions in the module, so I have no idea what goes wrong. Any ideas ? tia Rony Steelandt -- http://mail.python.org/mailman/listinfo/python-list
Re: Sudoko solver
"Sybren Stuvel" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Rony Steelandt enlightened us with: >> it looks like both zip files are corrupted (for windows platform)? > > Can you tell me more? So far I can only tell you that they work just > fine for me, and 'unzip -t puzzlepack*.zip' tells me the ZIP is fine. > This is on Linux. > > Sybren > -- > The problem with the world is stupidity. Not saying there should be a > capital punishment for stupidity, but why don't we just take the > safety labels off of everything and let the problem solve itself? > Frank Zappa Yes, this is on windows using winzip It says the zip file is not a valid zipfile Could you send your zip directly to me by mail ? bucodi (at) yahoo (dot) fr Rony -- http://mail.python.org/mailman/listinfo/python-list
Re: Sudoko solver
"Sybren Stuvel" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Rony Steelandt enlightened us with: >> I wonder if somebody had a Sudoko solver written in Python ? > > Check out http://www.stuvel.eu/sodoku - it is a Sudoku game with the > ability to solve & create new puzzles. > > Sybren > -- > The problem with the world is stupidity. Not saying there should be a > capital punishment for stupidity, but why don't we just take the > safety labels off of everything and let the problem solve itself? > Frank Zappa it looks like both zip files are corrupted (for windows platform)? I managed to install from source so not a big problem, but it would be nice to have the puzzle pack Rony -- http://mail.python.org/mailman/listinfo/python-list
Re: Sudoko solver
"Sybren Stuvel" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Rony Steelandt enlightened us with: >> I wonder if somebody had a Sudoko solver written in Python ? > > Check out http://www.stuvel.eu/sodoku - it is a Sudoku game with the > ability to solve & create new puzzles. > > Sybren > -- > The problem with the world is stupidity. Not saying there should be a > capital punishment for stupidity, but why don't we just take the > safety labels off of everything and let the problem solve itself? > Frank Zappa yes thanks Sybren, I just found yours. looks good and I have wx installed @to others, sorry for the question, you where right, google had the answer thanks rony -- http://mail.python.org/mailman/listinfo/python-list
Sudoko solver
Hi all, I wonder if somebody had a Sudoko solver written in Python ? Rony -- http://mail.python.org/mailman/listinfo/python-list
Re: Specifing arguments type for a function
> Paolo Pantaleo wrote: > >> I have a function >> >> def f(the_arg): >> ... >> >> and I want to state that the_arg must be only of a certain type >> (actually a list). Is there a way to do that? > > Yes and no. You can ensure that the passed object is a list, by calling e.g. > > def f(arg): > if not isinstance(arg, list): >raise "Not a list!" > > > Alternatively, you can just use it as an iterable - and the exception will > come from arg not being iterable. > > But what you can't do is make python complain about this: > > def f(arg): > for e in arg: > print e > > > f(100) > > before actually calling f. It will always fail at runtime. > > Diez What about def f(arg): if type(arg)=='list': #do something -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython GUI designer
> >> I am newbie learning wxPython. I tried using GUI designer called >> wxGlade. When it generated code I couldnt get the same level of >> flexibility as writing the code by oneself. >> >> Any view on what you think about using GUI designer tools. >> >> Every help is appreciated. >> > Boa is excellent if you stay at a primary level. It's a visual design tool, > and it can help you to learn how to manage wx classes. It works on windows > and linux as well. > My understanding of wxglade is that you need skills about sizers to be > confident with it. So if you know how to use sizers, you don't really need a > tool. > Regards, > jm I use wxDesigner -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Change value of element in list
> Hi, > > I'm doing python tutorial, >> http://docs.python.org/tut/node5.html > > and I have these, > > lists = ['spam', 'eggs', 100, 1234] > lists[2] = lists[2] + 23 > > I expected this, > lists = ['spam', 'eggs', 123, 1234] > > but got this, > lists = ['spam', 'eggs', 100, 1234] > > What's my problem here ? > > I have Fedora C5 with python2.4. > > Thanks. > > O Plameras Don't think so Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrateur>python Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> list=['spam','egg',100,1234] >>> list ['spam', 'egg', 100, 1234] >>> list[2]=list[2]+23 >>> list[2] 123 >>> list ['spam', 'egg', 123, 1234] >>> Rony -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Best Python Editor
I have to admit that I'm testing eclipse with pydev at the moment, and it looks realy good Rony > Hi, > > Can anyone tell me a good python editor/IDE? > It would be great if you can provide the download link also. > > Thank You, > -Manoj- > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" > >SASKEN BUSINESS DISCLAIMER > This message may contain confidential, proprietary or legally Privileged > information. In case you are not the original intended Recipient of the > message, you must not, directly or indirectly, use, Disclose, distribute, > print, or copy any part of this message and you are requested to delete it > and inform the sender. Any views expressed in this message are those of the > individual sender unless otherwise stated. Nothing contained in this message > shall be construed as an offer or acceptance of any offer by Sasken > Communication Technologies Limited ("Sasken") unless sent with that express > intent and with due authority of Sasken. Sasken has taken enough precautions > to prevent the spread of viruses. However the company accepts no liability > for any damage caused by any virus transmitted by this email -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: os.popen3() - how to close cmd window automatically?
> Dear Python developers, > > I use a short python script in order to run an external application plus to > open a browser displaying a default page. > > My Setup: Python 2.4.3. / Windows2000 > > # -- > # Script "shortcut.py" > import os > import webbrowser > import win32api > > # open default web browser and display webbpage > page = 'C:\\Temp\\Welcome.html' > webbrowser.open(page) > > # path to application that is opened > path = "C:\\Program Files\\ExternalApplication.exe" > > # get short name > shortpath = win32api.GetShortPathName(path) > > # open external application > stdin, stdout, stderr = os.popen3(shortpath) > output = stdout.read() > errors = stderr.read() > stdin.close() > stdout.close() > stderr.close() > print output > print errors > # -- > > > In order to make this Script available on other Windows2000 machines where no > Python installation is present, I made this script executable using "py2exe" > (http://www.py2exe.org/). This creates a "shortcut.exe" file. > If I run "shortcut.exe" everything works fine but a black empty cmd window > opens and its kept open until I close the application > "ExternalApplication.exe". > How can I close that black empty window automatically? > > Thanks in advance, >Nico replace console=[... by windows=[... in your setup.py -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Best Python Editor
> Manoj Kumar P enlightened us with: >> Can anyone tell me a good python editor/IDE? >> It would be great if you can provide the download link also. > > VIM 7 is great, http://www.vim.org/ > > Sybren Another VIM user here -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Python keywords vs. English grammar
I'm not a english speaker, so I just accepted it...; I understood it as : 'Try' allways to execute this code, 'except' when it doesn't work do this > I noticed something interesting today. In C++, you write: > > try { >throw foo; > } catch { > } > > and all three keywords are verbs, so when you describe the code, you can > use the same English words as in the program source, "You try to execute > some code, but it throws a foo, which is caught by the handler". > > In Python, you write: > > try: >raise foo > except: > > and now you've got a mix of verbs and (I think), a preposition. You can't > say, "You try to execute some code, but it raises a foo, which is excepted > by the handler". It just doesn't work grammatically. > > Sigh. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Programming Books?
Since I'm a professional developper,I don't think that my personnal view on those books would be of any use to you. I actually have no idea how to start Python if you're not a developper, I know it is possible since quit a lot of matimatical engineers use it. But I'm sure some people here will give you good advise. > Thanks, if you don't mind could I have a small personal > description on the quality of the books (pros, cons). > > I also am interested if anyone has used "Python Programming: An > Introduction to Computer Science" and if I could be given a detailes > evaluation about it. > > Thanks again. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Programming Books?
1.Python for Dummies Maruch Stef;Maruch Aahz - Hungry Minds Inc,U.S. - 408 pages - 08 2006 2.Programming Python Lutz Mark - O Reilly - 1256 pages - 07 2006 3.Core Python Programming Chun Wesley J - Peachpit Press - 07 2006 4.Python Fehily Chris - Peachpit Press - 05 2006 5.Python Essential Reference Beazley David - Sams - 03 2006 6.Python Power! Thomson Course Technology Ptr Development - Course Technology Ptr - 03 2006 7.The Book of Python Goebel J - No Starch Press - 1200 pages - 03 2006 8.Python Scripting for Computational Science Langtangen Hans P. - Springer-Verlag Berlin and Heidelberg GmbH & Co. K - 750 pages - 12 2005 9.WxPython in Action Rappin Noel;Dunn Robin - O Reilly USA - 12 2005 10.Python Programming for Gaming Dawson R. - Course Technology - 11 2005 11.Python Programming for the Absolute Beginner Dawson Michael - Premier Press - 10 2005 > I have been getting ready to learn programming for a long time, > installed a GNU/Linux operating system, learnt the ins and outs but I > think it is time to pick up a book and learn to now program. > > I have never actually programmed before only dabbed into XHTML so do > take it in mind that I need a book that could slowly progress me into > the fundamentals of programming. > I chose Python as my first programming language from hearing the praise > it got for elegant design and mainly the managment of the excessive > underlingy pins of machine resources and for it to teach you the > creative parts. > > So now i'm hear to use all of your collective expertise for the ideal > book for a beginning programming who want's to start with python. > > Your help is greatly appreciated. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: combining a C# GUI with Python code?
Isn't it a bit overkill to implement the whole .net framework 'Just' for a GUI ?? If you want to build quickly nice GUI's for your python program, have a look at wxpython & wxdesigner Rony > Is it possible to construct a C# form (using Visual Studio) but write only > Python code for the events? Is there some way to tell your program to run > Python whenever code is run, since it will be all Python code (e.g. for > button presses, etc.)? > > I know it's sort of silly, and it makes your program depend on .NET, but it > would be a nice and easy way to create a GUI while still writing in Python, > if it's possible. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
RE: Tkinter Dialog Management problems:
If you need a beginners tutorial for Tkinter, try this one : http://www.pythonware.com/library/tkinter/introduction/ >> Hello: >> >>Below I have included a stripped down version of the GUI I am working >> on. >> It contains 2 dialog boxes - one main and one settings. It has the >> following >> problems, probably all related, that I am hoping someone knows what I am >> doing wrong: >> >> 1) Pressing the Settings.. Button multiple times, brings up many >> instances >>of the Settings Panel. I just want it to bring up one. Is there an >> easy >>way to do that? > > In fact, the two windows you created are not dialogs; they're just > windows. To turn a window into an actual "dialog", i.e basically to make > it modal, you have to do the following operations (supposing your dialog > window is named dlg and your main window in named root): > > ## Ensure only window can receive user events > dlg.grab_set() > ## Force Dialog to stay on top of main window > dlg.transient(root) > ## Wait for dialog to be destroyed > root.wait_window(dlg) > >> 2) Pressing the Done button in the Settings Panel, just erases the Done >> button >>(and any other widgets in the Panel). It does not dismiss the Panel. >> Pressing >>the X button does work. What callback is that? Can I make the Done >> button >> call >>that instead? How? > > This is not the way it works. In fact, what you did wrong is something > that has been around for years in some Tkinter tutorial(s): you made your > classes inherit from Frame. This is a Bad Idea: a Frame is not a window, > but only a generic container. There are 2 classes for windows: Tk for the > main window and Toplevel for all others. They both also act as containers, > so you can do in them everything you do in Frames. So make your > ScriptDialog inherit from Tk, your SettingsDialog inherit from Toplevel, > remove all explicit creations of Tkinter.Tk or Tkinter.Toplevel and > instantiate your classes instead. Then calling destroy on either on the > dialogs will actually close the window. > >> 3) Pressing the Done button from the Main Panel has no effect? Why not? >> It >> used >>to work (self.quit()). Again, I would like to call whatever is called >> when the >>X button (top Right corner) is pressed. > > This should work. BTW, your "done" method is not needed: creating the > Button with command=self.quit works without problem. > > > Thanks. That helped alot. > However it leaves a couple very minor problems which I think I can live > with. > 1) It brings up an empty additional 'main window'. >I have tried using the Tkinter.NoDefaultRoot() option, but run into >other problems with other things not defined. > NameError: global name '_default_root' is not defined > Exception exceptions.AttributeError: "IntVar instance has no attribute > '_tk'" in > > > ignored > > 2) By deriving the 'dialog' from Tk, existing calls to self.pack() no >longer are valid, but they don't appear to be necessary. > > My only 'Tkinter tutorial' is what is included in Orielly's "Programming > Python". Still looking for a good tutorial. I am not clear what the > difference > between Tk() and Toplevel() are. They seem totally interchangeable. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Job opportunity in France
Well that would be one less, and countng > Rony Steelandt wrote: > >> We have a vacancy for a python programmer for a 6 months assignement. >> >> If interested, please visit www.bucodi.com >> >> And don't worry we speak english :) >> >> R_ >> > seriously, a job opportunity in France?? I heard that the unemployment rate > is not doing too well. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Job opportunity in France
We have a vacancy for a python programmer for a 6 months assignement. If interested, please visit www.bucodi.com And don't worry we speak english :) R_ -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Progamming python without a keyboard
http://www.newscientisttech.com/article/dn9066 To nice to be true ? R_ -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Swaying A Coder Away From Python
"One problem is that python tools suck," he wrote. Wallace compared the various IDEs and other developer tools available to Microsoft's freely available Visual Studio Express and called them "toys." What s wrong with VI ??? :) R_ >> On 4 May 2006 05:24:40 -0700, BartlebyScrivener <[EMAIL PROTECTED]> wrote: >>> I'm picking this up via clp on Google Groups. I can't tell what Mr. >>> Lundh is referring to. The first line of his post is: "Tim Williams >>> wrote" but there's nothing that comes before. > > Similarly, I'm reading this via comp.lang.python and the original > article hasn't shown up at this site. > > Tim Williams <[EMAIL PROTECTED]> wrote: >> I found the web version at. >> >> http://www.devwebpro.co.uk/devwebprouk-46-20060503SwayingACoderAwayFromPython.html > > Wherein we find: > > He also listed a few reasons why C# appeals to him over Python or Java: > * anonymous functions (delegates) > * a python-like yield statement > * a nice type system with generics > * interfaces > * properties (Yay!!) > > So that's two of the five Python has, one explicitly acknowledged, > plus the combination of lambda and functions-as-first-class-objects > is as good as (or better than) "anonymous functions (delegates)". > And then we get onto personal preferences as to how to do type > systems. That's not a great deal with which to sway someone. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: Unicode code has no method float() ?
Works, thank you > Le 04-05-2006, Rony <[EMAIL PROTECTED]> nous disait: >> How can I get the value of a Unicode object ? >> >> When I do myobject.float() I get the error message that it doesn't have >> a float() attribute > > Try to use the float builtin function, as in: float(myobject) instead of > a method. -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Unicode code has no method float() ?
How can I get the value of a Unicode object ? When I do myobject.float() I get the error message that it doesn't have a float() attribute tia R_ -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
We finally have a complete Python project
It is finally a fact, our new software project will be completely developed in Python ! Why is this so special , Well, we are using Python, for internal tools and some internal company software since years So why Python now ? Well, we are talking about a new project for us, so we can start from scratch. All tools that we use are open source tools. Since our project is a commercial project we can not develop it in open source, but we wanted to give back something to the community. We will contribute in 2 ways : - All standard functions & widget that we develop, we will publish here ! Anyone has an idea fort he license to use ? - We hope to interact with other python developers about the development of a commercial project with Python and if we have enough To make this happen we have created a blog : http://360.yahoo.com/bucodi Please visit us, comment, contribute, whatever :) feedback and interaction we will publish this as a free open source book (case study) Rony -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython, wxcombobox opening
That is what I was afraid for Thanks for answering, Rony > Hi, > > From the wxPython list: > >> Hi, >> >> Which event must I catch to be called when the user clicks on the combo >> "button" to make the drop down list to appear ? > > No, there isn't a specific event for the opening of the drop-down box. > > > Regards, > > Philippe > > > > > > Philippe Martin wrote: > >> Hi, >> >> I do not have the answer but am very interested in the issue. I tried >> this: >> >> l_ev = wx.MouseEvent(wx.wxEVT_LEFT_DOWN) >> l_ev.SetEventObject(self.GetCombo()) >> self.GetEventHandler().ProcessEvent(l_ev) >> >> Which did send the event to the combo (which is in a pannel in my case) .. >> but that is apparently not the event that triggers the dropping of the >> list. >> >> I posed elsewhere and will forward here any hint. >> >> Philippe >> >> >> >> Rony Steelandt wrote: >> >>> Hi, >>> >>> Does somebody knows a way to automaticely open the list part of a >>> wxCombobox when it gets the focus ? >>> >>> tia, >>> >>> Rony -- http://mail.python.org/mailman/listinfo/python-list
wxPython, wxcombobox opening
Hi, Does somebody knows a way to automaticely open the list part of a wxCombobox when it gets the focus ? tia, Rony -- http://mail.python.org/mailman/listinfo/python-list