473,320 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MVC in wxPython HELP!

Hi to all.
I woud implement MVC with wxPython. Is it possible? Is there anyone
that have experience in this?
The only correct example according to Observer Pattern that i found on
web is not the formal implementation of MVC (is Document/View) and is
implemented with gtk...
How can i translate this gtk example in wx?
Does exist a tutorial, a archive of example or anything about MVC in
wx?
Thanks all!
Sorry for my "italian" english!

The gtk example that i talk about in my previous message is here:
http://www.pyj.it/sorgenti/2004/01/doc-view.zip

Jan 11 '06 #1
5 2420
me********@gmail.com wrote:
Hi to all.
I woud implement MVC with wxPython. Is it possible? Is there anyone
that have experience in this?
The only correct example according to Observer Pattern that i found on
web is not the formal implementation of MVC (is Document/View) and is
implemented with gtk...
How can i translate this gtk example in wx?
Does exist a tutorial, a archive of example or anything about MVC in
wx?
Thanks all!
Sorry for my "italian" english!


The problem here is that MVC is not a "thing" (or class or whatever) that
can demonstrated once and for all, but a design concept for
GUI-applications.

You can do MVC in _all_ toolkits, and html, and even ncurses. Some toolkits
have "support" built-in in the way that their more complex widgets - like
tables or treeviews - expect a so-called model. That means that instead of
having e.g. a table-row-object that you add to a table and that you fill,
the table will query your model with an interface like this:

class TableModel:
def __len__(self):
....

def column_count(self):
....

def get_value(self, row, column):
....
I have very limited experience with wx - but short googling reveals e.g.

wx.lib.mvctree

Note the (Basic)TreeModel

Basically, you should try and look for wx(Python)-examples that use tree or
list widgets.

Regards,

Diez
Jan 11 '06 #2
See this recent explanation by has:
http://groups.google.ca/group/comp.l...66a793c?hl=en&
(The rest of the thread may lead you to more concrete examples as well.)

Jan 11 '06 #3
me********@gmail.com wrote:
Hi to all.
I woud implement MVC with wxPython. Is it possible? Is there anyone
that have experience in this?
The only correct example according to Observer Pattern that i found on
web is not the formal implementation of MVC (is Document/View) and is
implemented with gtk...
How can i translate this gtk example in wx?
Does exist a tutorial, a archive of example or anything about MVC in
wx?
Thanks all!
Sorry for my "italian" english!

The gtk example that i talk about in my previous message is here:
http://www.pyj.it/sorgenti/2004/01/doc-view.zip

Can I just suggest you search in Google Groups for the message by
"has" labelled "Re: MVC programming with python (newbie) - please help".
Dated: 7 Jan 2006 07:03:04 -0800. It is one of the nicest short
descriptions of the MVC pattern and why it works.

The link I have is huge, but:
http://groups.google.com/group/comp....browse_thread/
thread/eb0be1531e010273/
9b80e79d4706200d?tvc=2&q=MVC+daniels#9b80e79d47062 00d

I've inserted returns at two points in the url directly after slashes,
drop tose returns and the associated spaces.

--Scott David Daniels
sc***********@acm.org
Jan 11 '06 #4
has
If folk wish to post that spiel anywhere else, be my guest. Public
domain and all that.

has

Jan 11 '06 #5
> Can I just suggest you search in Google Groups for the message by
"has" labelled "Re: MVC programming with python (newbie) - please help".
Dated: 7 Jan 2006 07:03:04 -0800. It is one of the nicest short
descriptions of the MVC pattern and why it works.


I'll second that !!!!
Jan 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Daniel Ehrenberg | last post by:
I'm trying to learn wxPython, but I can't seem to find much documentation. The wxPython website says that all advanced (and even some basic) documentation for wxPython is only available in C++...
7
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of...
15
by: Grant Edwards | last post by:
Can anybody recommend a good book on wxPython? Are there any books on wxPython? I've been trying to learn wxPython and/or wax for a few weeks, and I'm just not getting it. wxWindows seems...
1
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
10
by: Mario | last post by:
Hello all, I'm trying hard to make possible to print some simple text from python to the default printer using wxPython, after days of internet searches I found this page:...
0
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this...
0
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.2 release of wxPython is now available for download at http://wxpython.org/download.php. This is a mostly bug fix release and takes care of several "unfortunate...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
9
by: Tyler | last post by:
Hello All: I am currently working on a project to create an FEM model for school. I was thinking about using wxPython to gather the 12 input variables from the user, then, after pressing the...
4
by: stef | last post by:
hello, I'm trying to move from Delphi to Python (move from MatLab to Python already succeeded, also thanks to this discussion group). From the discussions in this list about "the best" GUI for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.