Just a quick 'Thank you' for this advice the other day Alan and
Abdur-Rahmaan.
Greatly appreciated as we work together with our students here.
Thank you.
Matthew Polack | Teacher
[image: Emailbanner3.png]
Trinity Drive | PO Box 822
Horsham Victoria 3402
p. 03 5382 2529 m. 0402456854
e.
On 09/08/18 05:10, Matthew Polack wrote:
> I'm trying to configure a button that prints a variable and calls a
> function at the same time...but I can't figure out how to get the syntax
> right...or if this is even possible:
Of couse its possible just wrap it in a higher level function:
def newfu
Hi,
I'm trying to configure a button that prints a variable and calls a
function at the same time...but I can't figure out how to get the syntax
right...or if this is even possible:
print("You have selected to convert "), croptype
I've tried various combinations of the above...but can't get it t
On Wed, May 21, 2008 at 5:27 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> This is a syntax that I've seen on occasion in other people's code:
>
> theme = (VALID_THEMES[0], theme) [ theme in VALID_THEMES ]
>
> I have no idea how this works, or how to go about looking it up. Can someo
On Wed, May 21, 2008 at 8:27 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> This is a syntax that I've seen on occasion in other people's code:
>
> theme = (VALID_THEMES[0], theme) [ theme in VALID_THEMES ]
>
> I have no idea how this works, or how to go about looking it up.
This is
Hi all,
This is a syntax that I've seen on occasion in other people's code:
theme = (VALID_THEMES[0], theme) [ theme in VALID_THEMES ]
I have no idea how this works, or how to go about looking it up. Can
someone enlighten me as to what's happening here?
Many thanks,
Eric
___
> There must be something that I'm missing here.
Triuple quoted strings :-)
Take a look at my Databases topic for examples using SqlLite and
triple quotes for the queries.
Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld
.
__
On 09/02/06, Rich Shepard <[EMAIL PROTECTED]> wrote:
> self.cur.execute("CREATE TRIGGER fki_comp_cat BEFORE INSERT ON component
> FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'insert on table "category"
> violates foreign key constraint "fk_comp_cat"') WHERE NEW.comp_cat IS NOT
> NULL AND (SELECT
On Wed, 8 Feb 2006, Danny Yoo wrote:
> Odd. Can you show us that complaint? Show us the error string. There are
> several possibilities here, but I hate guessing. *grin* Show us the exact
> error message you're getting, and that'll hint at what's really going on.
>
> Normal string literals can'
On Wed, 8 Feb 2006, Rich Shepard wrote:
>I'm trying to understand how to write SQL statements using pysqlite.
> The problem is that if I use newlines to format the SQL statements as I
> would with straight SQLite or PostgreSQL, python complains because it
> sees the newline before the end of
I'm trying to understand how to write SQL statements using pysqlite. The
problem is that if I use newlines to format the SQL statements as I would
with straight SQLite or PostgreSQL, python complains because it sees the
newline before the end of the quoted string.
So, I make the CREATE TABLE
11 matches
Mail list logo