Re: [Tutor] Platform Independence in Python

2011-04-06 Thread Steve Willoughby
On 06-Apr-11 21:39, Ranjith Kumar wrote: On Thu, Apr 7, 2011 at 10:04 AM, Ratna Banjara mailto:mast.ra...@gmail.com>> wrote: In windows we should write =>import tkinter while in linux, we should write =>import Tkinter Actually, you should do the same thing on both platforms. A

Re: [Tutor] Platform Independence in Python

2011-04-06 Thread Ranjith Kumar
Hi Ratna, I hope this link will help http://www.java2s.com/Code/Python/GUI-Tk/AlarmDemo.htm On Thu, Apr 7, 2011 at 10:04 AM, Ratna Banjara wrote: > Hello all, > > I was learning GUI in python and found dissimilarities while importing > 'tkinter' module. > In windows we should write > =>impo

[Tutor] Platform Independence in Python

2011-04-06 Thread Ratna Banjara
Hello all, I was learning GUI in python and found dissimilarities while importing 'tkinter' module. In windows we should write =>import tkinter while in linux, we should write =>import Tkinter Difference is Capital ' T '. Means same code cannot run on both platform , how can we adjust this issue

Re: [Tutor] RE

2011-04-06 Thread Michiel Overtoom
On 2011-04-06 11:03, JOHN KELLY wrote: I need help. In that case, start with http://wiki.python.org/moin/BeginnersGuide -- "Lots of people have brilliant ideas every day, but they often disappear in the cacophony of life that we muddle through." - Evan Jenkins, http://arstechnica.com/aut

Re: [Tutor] RE

2011-04-06 Thread Steve Willoughby
On 06-Apr-11 02:03, JOHN KELLY wrote: I need help. Can you be a little more specific? :) -- Steve Willoughby / st...@alchemy.com "A ship in harbor is safe, but that is not what ships are built for." PGP Fingerprint 48A3 2621 E72C 31D9 2928 2E8F 6506 DB29 54F7 0F53 _

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Alan Gauld
"michael scott" wrote > Is this really a python tutor question? Oh, well, try this: > http://lmgtfy.com/?q=sqlite+test+if+table+exists My apologies, I was not aware that there were questions I could and could not ask. The only issue is whether it is relevant to the group. Python tutor is

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Joel Goldstick
On Wed, Apr 6, 2011 at 10:38 AM, michael scott wrote: > > > -- > *From:* Andre Engels > > *To:* michael scott > *Cc:* tutor@python.org > *Sent:* Wed, April 6, 2011 10:19:53 AM > > *Subject:* Re: [Tutor] (sqlite3) Testing if a table has been created. > > On Wed, Apr 6,

Re: [Tutor] Rhythmbox python plugin to capture middle click event

2011-04-06 Thread Emile van Sebille
On 4/5/2011 10:10 PM Lachlan d said... I've been working on some python rhythmbox plugins for the past few months and now i've decided to try writing my own. You'll get a much better answer if this is asked of other rhythmbox developers. This tutor list in more suited for those just learning

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread michael scott
From: Andre Engels To: michael scott Cc: tutor@python.org Sent: Wed, April 6, 2011 10:19:53 AM Subject: Re: [Tutor] (sqlite3) Testing if a table has been created. On Wed, Apr 6, 2011 at 4:06 PM, michael scott wrote: Is this really a python tutor question?

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Andre Engels
On Wed, Apr 6, 2011 at 4:06 PM, michael scott wrote: > Is this really a python tutor question? Oh, well, try this: > http://lmgtfy.com/?q=sqlite+test+if+table+exists > > -- > Joel Goldstick > > > My apologies, I was not aware that there were questions I could and could > not ask. I understand n

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread michael scott
From: Joel Goldstick To: michael scott Cc: tutor@python.org Sent: Wed, April 6, 2011 8:30:17 AM Subject: Re: [Tutor] (sqlite3) Testing if a table has been created. On Tue, Apr 5, 2011 at 9:59 PM, michael scott wrote: Hello guys, > >Since sqlite gives an er

Re: [Tutor] Showing/hiding widgets in Tkinter

2011-04-06 Thread Peter Otten
The Green Tea Leaf wrote: > > which implies that tk does not store the placement information > > automatically. Assuming that Python's Tkinter behaves the same way you can > > write > > > > def toggle(): > >if mylabel.visible: > >mylabel.pi = mylabel.place_info() > >mylabel.pl

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Joel Goldstick
On Tue, Apr 5, 2011 at 9:59 PM, michael scott wrote: > Hello guys, > > Since sqlite gives an error if you try to create a table that's already > there, how do I test if a table is already present? > > > for example in > > def database(info): > import sqlite3 > > connection = sqlite3.conne

Re: [Tutor] Showing/hiding widgets in Tkinter

2011-04-06 Thread The Green Tea Leaf
>> According to the documentation I've read I should be able to use >> 'place()' after having used 'place_forget()' to show the label at the >> same place. > > Where did you read that? I only found > > """ > If the configuration of a window has been retrieved with place info, that > configuration c

Re: [Tutor] GUI IDLE for UBUNTU 10

2011-04-06 Thread Andrés Chandía
Sorry, the command is Crtl+F9, not only F9 On Wed, April 6, 2011 12:43, "Andrés Chandía" wrote: Actually the default text editor in Ubuntu, "gedit" has a plugin named Python console, that you can activate at "edit > preferences" menu, then at the menu "view > inferior subwindow" (F9) you can

Re: [Tutor] GUI IDLE for UBUNTU 10

2011-04-06 Thread Andrés Chandía
Actually the default text editor in Ubuntu, "gedit" has a plugin named Python console, that you can activate at "edit > preferences" menu, then at the menu "view > inferior subwindow" (F9) you can activate it, maybe the menu names are not exact, because I'm translating from catalan. Good luck!

Re: [Tutor] GUI IDLE for UBUNTU 10

2011-04-06 Thread Corey Richardson
On 04/06/2011 05:34 AM, Ratna Banjara wrote: > Before this i used to run in windows with python IDLE which makes easy to > write python codes and run using Run command or pressing F5. > > Now i want to ask if there is python GUI IDLE equivalent in Ubuntu. Please > help. At the terminal, sudo apt-

Re: [Tutor] Showing/hiding widgets in Tkinter

2011-04-06 Thread Peter Otten
The Green Tea Leaf wrote: > Hi all, > > I'm trying to learn a bit about how to show/hide objects using the > available layout managers and have no problems using Pack or Grid but > when I try to use Place then I'm missing something > > My test code looks like this > > from Tkinter import * > >

[Tutor] GUI IDLE for UBUNTU 10

2011-04-06 Thread Ratna Banjara
As i know python comes as default in ubuntu and can be accessed from terminal. But i found difficulty to write programs in editor and run from terminal. I need GUI Before this i used to run in windows with python IDLE which makes easy to write python codes and run using Run command or pressing F5.

[Tutor] Showing/hiding widgets in Tkinter

2011-04-06 Thread The Green Tea Leaf
Hi all, I'm trying to learn a bit about how to show/hide objects using the available layout managers and have no problems using Pack or Grid but when I try to use Place then I'm missing something My test code looks like this from Tkinter import * def toggle(): if mylabel.visible: my