Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38039
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <square.steve@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.015 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'main()': 0.07; 'welcome.': 0.07; 'python': 0.09; 'curve': 0.09; 'logic': 0.09; 'mvc': 0.09; 'pointers': 0.09; 'looked': 0.10; 'gui': 0.11; 'steve': 0.13; 'subject:)?': 0.16; 'copied': 0.17; 'code.': 0.20; 'own.': 0.22; 'programming': 0.23; 'second': 0.24; 'header:User-Agent:1': 0.26; 'separate': 0.27; 'wonder': 0.27; 'question': 0.27; 'along.': 0.29; 'class': 0.29; "i'm": 0.29; 'code': 0.31; '(and': 0.32; 'structure': 0.32; 'point,': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'add': 0.36; 'created': 0.36; 'but': 0.36; 'message- id:@gmail.com': 0.36; 'functional': 0.36; 'should': 0.36; 'subject: (': 0.36; 'level': 0.37; 'received:209': 0.37; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'most': 0.61; 'high': 0.61; 'relatively': 0.62; 'subject:off': 0.65; 'header :Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'reply- to:addr:gmail.com': 0.79; 'challenge.': 0.84; 'subject:Best': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:reply-to:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=igTrwbet195C95JEUk+KBBqWxcdd9rXu3gevZT5t7uA=; b=L9aERGZHLlXWSLM7oYRqByJI7NJuTdPk+BL8GC8YlOvc4ItnZzMiKzp9wQtlnDDnGE BivyOlt54n/SPuDwKG1zVrJStnZh6OhmelGudxJ+9/95U0aw1cXwMP07l+5uUa5MzT2h pNxGfAtJaRkKzxxZoWcr8vvLV7PZSTGJYhpj5TOzUy3Q+0rvlrhxVUvrgmld7+5tsjYZ G7utV4RebBiTnnBq9Yz34B0qBIHGqhACSgRRbBz4WZRcIv9VjAGvcHsO6sNQTq+9OWlt epmBZLIBFYPD/X9b7jFG7jTHQcbT0ICWcxJQxdWYOzip9weEayBE413OSqx0+h4EfD2k Qqng== |
| X-Received | by 10.204.6.5 with SMTP id 5mr3414291bkx.26.1359728678988; Fri, 01 Feb 2013 06:24:38 -0800 (PST) |
| Date | Fri, 01 Feb 2013 15:24:34 +0100 |
| From | Steve Simmons <square.steve@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Best approach to OO Style (only slightly off topic)? |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | square.steve@gmail.com |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1277.1359728687.2939.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1359728687 news.xs4all.nl 6906 [2001:888:2000:d::a6]:36094 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:38039 |
Show key headers only | View raw
I'm relatively new to OO (and Python and QT ) and I am learning as I go along. As I slowly come up to speed, I have some questions about the best approach to program/module structure so I'm looking for some pointers (URL's or replies). I have copied some code from 'Rapid GUI Programming with Python and Qt' (Great book!) and am now modifying/extending it with my own. The original code (Image Changer - Chp 6) is a single class that contains code for both UI creation/management and functional code. I have created a second class for my own code and I'm on the brink of adding calls from one class to the other and vice-versa. At this point, I began to wonder what a 'correctly structured' OO program should look like. Should I separate GUI logic from 'business' logic? Should everything be in one class? Should my main() be carrying the high level logic? Anyinput most welcome. I looked briefly at the MVC model which answers my question at a high level but itrepresents another learning curve that I'm reluctant to add to my current challenge. Steve
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Best approach to OO Style (only slightly off topic)? Steve Simmons <square.steve@gmail.com> - 2013-02-01 15:24 +0100
csiph-web