Re: GUIs - A Modest Proposal

2010-06-07 Thread Simon Hibbs
d code base by 2x or more just isn't supportable. Tkinter is perfectly adequate for basic GUIs. If you want something more sophisticated there are plently of high quality, well documented alternatives to match your platform or functionality requirements. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Generic spreadsheet interface

2010-02-12 Thread Simon Hibbs
t as much work as it sounds and could be developed incrementaly. Alternatively you just write your code against one spreadsheet module, and then write a wrapper module for the other spreadsheet API so it looks the same. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with win32ui

2009-12-23 Thread Simon Hibbs
32ui.pyc", line 10, in __load > ImportError: DLL load failed: This application has failed to start > because the a > pplication configuration is incorrect. Reinstalling the application may > fix this >   problem. > > Dependencie walker does not find any major issues. what am i missing here. > > thank you in advance for your help. You could try and find out what the __load statement in line 10 in win32ui.py does. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: python gui builders

2009-11-20 Thread Simon Hibbs
On 18 Nov, 22:11, Stef Mientki wrote: > Simon Hibbs wrote: > > On 18 Nov, 07:51, sturlamolden wrote: > > >> GPL > > > PyQT is GPL for now, but Qt itself is available under the LGPL as is > > PySide. Eventualy PySide, which tracks the PyQT API, will supplant it

Re: is there any FIX message handle modules in Python?

2009-11-19 Thread Simon Hibbs
was the first result when I googled > 'python "financial information exchange"'? > > http://www.quickfixengine.org/ There are no prebuilt Python modules available based on quickfix, at least that I'm aware of. It has Python bindings available, but you have to complie it

Re: python gui builders

2009-11-18 Thread Simon Hibbs
it. Qt provides them with a platform with the potential to rival the iPhone dev environment. Of course to take full advantage of it you need to invest in learning it all, which is non-trivial. It comes at a cost in time and potential lock-in. But the point is you can't just say

Re: python gui builders

2009-11-18 Thread Simon Hibbs
t all others are measured, and generaly found wanting. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: python gui builders

2009-11-17 Thread Simon Hibbs
n and Qt" is very helpful with that. I wouldn't completely dismiss Tkinter. It's too simple for complex GUIs but I still think it has it's place for basic utilities. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Choosing GUI Module for Python

2009-11-10 Thread Simon Hibbs
recomending PyQT to know that there is so much work being put in to make sure it has a great future. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Choosing GUI Module for Python

2009-11-09 Thread Simon Hibbs
ense (it was free for GPL projects). That's rapidly becoming a non-issue as the core QT framework is now LGPL and Nokia have a project underway to produce PyQT compatible LGPL python bindings under the PySide project. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Command parsing... best module to use?

2009-11-03 Thread Simon Hibbs
odule of the week" series of articles. http://www.doughellmann.com/PyMOTW/cmd/index.html Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: how to modify row content of file in python?

2009-10-27 Thread Simon Hibbs
work so no Mac. *sob*). One thing to look out for is that 'columns' is being created each time through the loop, which works fine. If you modified the code to append to it instead, you would need to create it before entering the loop as you can't append to something that doesn'

Re: Converting a PIL image object to a buffer

2009-04-02 Thread Simon Hibbs
On 2 Apr, 08:28, "Diez B. Roggisch" wrote: > Simon Hibbs schrieb: > > > > > On 1 Apr, 21:43, Gary Herron wrote: > >> Simon Hibbs wrote: > >>> I'm trying to dump a snapshot of my application window to the > >>> clipboard. I can

Re: Converting a PIL image object to a buffer

2009-04-01 Thread Simon Hibbs
On 1 Apr, 21:43, Gary Herron wrote: > Simon Hibbs wrote: > > I'm trying to dump a snapshot of my application window to the > > clipboard. I can use ImageGrab in PIL to get the screen data into a > > PIL image object, which i have converted to a bitmap using ImageWin,

Converting a PIL image object to a buffer

2009-04-01 Thread Simon Hibbs
dData(win32clipboard.CF_BITMAP, img) It fails, telling be that "The object must support the buffer interface". How can I convert a PIL image into a buffer object? I can't find any clues. Help appreciated, Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: A little bit else I would like to discuss

2009-02-13 Thread Simon Hibbs
t has to offer, with full native support for MacOS X, Linux and Windows. The only fly in the ointment in licensing. The QT toolkit will be fully GPL and LGPL from version 4.4, but PyQT itself has a dual GPL/ commercial licensing structure. Still, it's relatively cheap and well worth it

Re: Python OOP advice

2008-09-17 Thread Simon Hibbs
Great contributions, thanks both of you. I'm self-tought when it comes to Python and OOP and I haven't yet grown an intuitive feel for how to do things sensibly. Simon -- http://mail.python.org/mailman/listinfo/python-list

Python OOP advice

2008-09-17 Thread Simon Hibbs
there a way to cleanly implement a parent-child relationship between objects that gives child objects limited access to members of the parent? Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: creating color gradients using PIL

2007-11-23 Thread Simon Hibbs
m = im.tostring() t = fromstring(m, 'b') tt = asarray(t, typecode) # Note that ysize is first: return reshape(tt, (ysize, xsize)) im = numpy2pil(myarray) im.putpalette(palette_list) im.save('myimage.png') You'll need to import numpy and Image. You'll need to generate the palette (juust a list) and image array (a numpy array) of course. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: python safe scripting

2007-11-23 Thread Simon Hibbs
there's a module for this. Those kinds of tests are fairly easy though. import datetime, os filename = 'myfile.log' if (datetime.date.today().weekday() == 0) or (os.stat(filename)[6] > 200): do.whatever() The individual tests would be better wrapped in utility fu

Re: Using python to create windows apps that everyone can use?

2007-09-19 Thread Simon Hibbs
ercial or the express version, to create the GUI in VB or C# and from that call Python code that does all the heavy lifting. I'd second the recommendation for QtDesigner if you want cross- platform capability. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Simon Hibbs
Sorry, here's the tutorial link: http://hetland.org/writing/instant-python.html Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Simon Hibbs
ks, and how Python works. Learning OOp this way is easy and painless, and what you learn about the theory and principles of OOP in Python will be transferable to C++ if you end up going in that direction. I hope this was helpful. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a distro of python... What would you include in it?

2007-05-30 Thread Simon Hibbs
ission statement and adds significant value of it's own. It also acts as an add-on to the standard distro rather than an alternative and I recommend you consider that strategy. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: I need some tips to begin a simple project

2006-09-19 Thread Simon Hibbs
ame programing even easier. Having said all that, Python isn't magic. I'd recommend doing something simple first, such as a calculator or a text editor. These are very easy to do, but will cover the basics of creating a user interface, manipulating data and accessing files. Simon Hi

Re: python vs java

2006-09-06 Thread Simon Hibbs
also popular. I'd say that Python is easier to learn and more productive as a language, but Java has a much larger selection of add-ons and libraries available. I can't give you much more help without knowing what the app will do, and therefore what language features or library/framework

Re: Make Object Oriented?

2006-08-10 Thread Simon Hibbs
would be useful or appropriate? Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Borg vs. Module

2006-08-01 Thread Simon Hibbs
's clear to anyone coming across it. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle vs XML for file I/O

2006-08-01 Thread Simon Hibbs
utomaticaly, but there are toolkits such as SQLObject and SQL Alchemy that can automate this as well. Best regards, Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Paste text across multiple text boxes

2006-07-25 Thread Simon Hibbs
This link seems to have some relevent code. http://lists.wxwidgets.org/archive/wxPython-users/msg07340.html Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: About Embedding PyWin or wxPython

2006-07-25 Thread Simon Hibbs
h you would need to distribute the .NET and IronPython runtimes. Multiple-language and library integration is after all what .NET is all about. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: dicts vs classes

2006-07-25 Thread Simon Hibbs
ral way to express yourself. Any objctions to this, or pitfalls? Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Project organisation

2006-07-19 Thread Simon Hibbs
. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: TextCtrl focus events in wxWidgets

2006-07-19 Thread Simon Hibbs
Frank Millman wrote: > Try self.PlantCtrl.Bind(wx.EVT_KILL_FOCUS, self.OnUpdatePlantCtrl) And Voila! It works. Many, many thanks. Any idea what is going on? Simon -- http://mail.python.org/mailman/listinfo/python-list

Re: TextCtrl focus events in wxWidgets

2006-07-19 Thread Simon Hibbs
Simon Hibbs wrote: > rony steelandt wrote: > > Since the event handler of a textctrl inherits from wxCommandEvent, > > I would guess that the binding should be to EVT_COMMAND_KILL_FOCUS > > Still not working :( I can trap EVT_TEXT_ENTER events successfuly, without using EV

Re: TextCtrl focus events in wxWidgets

2006-07-19 Thread Simon Hibbs
rony steelandt wrote: > Since the event handler of a textctrl inherits from wxCommandEvent, > I would guess that the binding should be to EVT_COMMAND_KILL_FOCUS Still not working :( Simon -- http://mail.python.org/mailman/listinfo/python-list

Re: TextCtrl focus events in wxWidgets

2006-07-19 Thread Simon Hibbs
ge in the console. I'm trapping other events successfuly elsewhere using similar code. Simon Hibbs . -- http://mail.python.org/mailman/listinfo/python-list

TextCtrl focus events in wxWidgets

2006-07-19 Thread Simon Hibbs
ould implement this, or a similarly user friendly behaviour? Best regards, Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: New SourceForge project: Diet Python!!!

2006-07-19 Thread Simon Hibbs
, would be a Very Good Thing. They're planning on manufacturing 100 million of these things! Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie

2006-07-13 Thread simon . hibbs
ing engine using Python, SQLite and wxPython. It's easily my most ambitious project so far. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Data access from multiple code modules

2006-07-13 Thread simon . hibbs
for all the transformations I want to perform on the data. Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Data access from multiple code modules

2006-07-13 Thread simon . hibbs
nd it. This seems to me to be the superior approach. Are there any other architectural options that anyone could suggest? Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list

Re: Data access from multiple code modules

2006-07-12 Thread simon . hibbs
7;s hard to get out of that mentality. Many thanks, Simon Hibbs P.S. Regular reader of your blog on Oreillynet. -- http://mail.python.org/mailman/listinfo/python-list

Data access from multiple code modules

2006-07-12 Thread simon . hibbs
n GUI form, and panels defined as seperate objects in seperate files. Various panels will contain controlls for manipulating data in the DataObject, or wherever data storage end up. Best regards, Simon Hibbs (who strugles to get his head round this OOP stuff sometimes). -- http://mail.pyt

Re: listener program in Python

2006-05-12 Thread simon . hibbs
2" explains how to write Windows services and do basic networking. This article explains one way: http://tinyurl.com/ezjx7 Simon Hibbs -- http://mail.python.org/mailman/listinfo/python-list