On Monday 03 December 2007 04:37:12 am Ed Leafe wrote:
> On Dec 3, 2007, at 2:07 AM, johnf wrote:
> > First a little house cleaning - it has been pointed out that I
> > forgot to add
> > two lines of code (at the top) that are very import to the Linux
> > and Mac
> > users.
>
>       Not exactly. The line '#!/usr/bin/env python' is not required at
> all; it is only used when a script is being run as the main program
> from a shell, or when double-clicked. For the vast majority of
> scripts, such as modules and those containing class definitions, this
> line is useless.
>
>       However, the line that reads: '# -*- coding: utf-8 -*-' is
> critically important for *all* platforms. Python will throw an error
> if your script contains a non-ASCII character and does not declare
> the encoding:
>
> SyntaxError: Non-ASCII character '\xc3' in file test.py on line 1,
> but no encoding declared; see http://www.python.org/peps/
> pep-0263.html for details
>
> > Another issue raised it's ugly head.  There are differences between
> > python,
> > wxPython setups and versions.  It caused the last code using a
> > panel not to
> > run correctly for at least one person.
>
>       FWIW, it runs exactly as expected on wxPython 2.8.6.0 on Ubunty Feisty.
>
> > So I am changing the control we will
> > use to demonstrate how sizers work.  We will use a Dabo button
> > (dabo.ui.dButton).
>
>       Another bad choice. On a Mac, buttons can grow horizontally, but
> cannot expand vertically.
>
> > I was hoping someone would have posted a description of how sizers
> > worked
> > within the context of Dabo.
>
>       http://dabodev.com/wiki/NewbieFAQs#Using%20Sizers
>
> > So lets just more on and add a little more information by
> > demonstrating the effects
> > of parameters to sizers.
>
>       The dSizer demo in DaboDemo shows the effect of the various sizer
> settings pretty well, allowing you to change them interactively to
> see what difference each makes.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com

Thanks Ed.  I did not know that the Mac worked differently with buttons (I 
don't have a Mac to work with).  Do you have a better choice for the future?  
I liked the idea of a panel but was told it did not work in all cases.

My next installment will be about creating the display needed to select a 
file.  Does the Mac work the same as Linux and Windows when selecting a file? 

-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to