[wxPython-users] Concept: wx Templates?
Josiah Carlson
jcarlson at uci.edu
Tue Jul 10 21:31:48 PDT 2007
Keene Maverick <keenemaverick+wxpython at gmail.com> wrote:
> I'm really hoping something like this already exists...
>
> I've recently been checking out a lot of different toolkits and frameworks for
> python, and so far, I've been quite amazed at how amazingly easy all these
> pythonic tools make programming. I spent YEARS trying to learn C++ or Java
> (always self-taught), but it only took me 2 months to jump into python and make
> my first honest-to-goodness desktop application.
>
> Well, my boss is really excited by what I'm learning, and has thrown tons of
> different projects my way, some online, some offline.
>
> Well, I've been looking at TurboGears and a lot of other online frameworks, and
> I've simply fallen in love with the MVC approach to design. I just recently
> checked out Dabo as well, and noticed that it had a somewhat similar approach.
>
> So here's what I was wondering -- would it be possible to create a wx template
> system, similar to Kid in Turbogears, so that the same application can be used
> both online and offline?
>
> What I'm imagining is having an offline CRM for a company, but with an online
> version for when you're out on the road, that updates the same database, has
> the same view, etc.
>
> It would require designing two "view" components, but that's definitely easier
> than writing two programs altogether. Is this possible? Does it exist? Am I
> being a total n00b by even asking?
This question has been asked before. Generally, it is possible to do
what you want, but I've not yet seen anyone do it with wxPython and
*anything* else.
One thing that you may want to consider is that using a web interface as
the "view" isn't all that pleasant. You get to deal with the pain of
writing the AJAX interface (if you want it to be as reactive as the
wxPython), dealing with session information (whether embedded fully in
the client, or hosted on the server), and having to remember to update
*two* views when you update.
When the webkit is finished, you may want to offer your "offline"
interface as basically just an embedded web server with browser. At
least then you only need to write one server and one client.
- Josiah
More information about the wxpython-users
mailing list