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
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
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
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
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
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
t all others
are measured, and generaly found wanting.
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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'
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
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,
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
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
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
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
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
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
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
Sorry, here's the tutorial link:
http://hetland.org/writing/instant-python.html
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
would be useful or appropriate?
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
's clear to anyone coming across it.
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
ral way to express yourself.
Any objctions to this, or pitfalls?
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
.
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
ge in the console.
I'm trapping other events successfuly elsewhere using similar code.
Simon Hibbs
.
--
http://mail.python.org/mailman/listinfo/python-list
ould implement this, or a similarly
user friendly behaviour?
Best regards,
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
, 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
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
for all the transformations I
want to perform on the data.
Simon Hibbs
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
45 matches
Mail list logo