On 08/14/2011 11:14 AM, Alan Gauld wrote:
On 14/08/11 14:07, Wayne Werner wrote:
Of course I personally I usually do
import Tkinter as tk
Which means I only have to type 3 extra characters, but it removes any
ambiguity - tk.Something had to come from Tkinter
Thats exactly what I tend to do n
On 08/14/2011 03:10 AM, Robert Sjoblom wrote:
I have tried to follow the tutorial I found here:
Python 2.7 Tutorial
http://www.youtube.com/watch?v=uh6AdDX7K7U
This is what I have done so far:
#!/usr/bin/python
from Tkinter import *
import Tkinter.MessageBox
I figured I might as well, g
On 08/14/2011 02:29 AM, Peter Otten wrote:
brandon w wrote:
On 08/13/2011 04:49 PM, Peter Otten wrote:
How do I find the modules in Tkinter?
The simplest approach is probably to explore your file system:
Step 1: where's Tkinter?
$ python -c 'import Tkinter, os; prin
On 14/08/11 14:07, Wayne Werner wrote:
Of course I personally I usually do
import Tkinter as tk
Which means I only have to type 3 extra characters, but it removes any
ambiguity - tk.Something had to come from Tkinter
Thats exactly what I tend to do nowadays.
I used to use the import * method
On Aug 14, 2011 2:12 AM, "Robert Sjoblom" wrote:
>
> However, given that Tkinter is such a huge package to begin with, I'd
> say that you should continue to use from Tkinter import *, but be
> aware of what you're doing when you type that, and that there is a
> certain risk of conflicts.
Also, mo
> I have tried to follow the tutorial I found here:
>
> Python 2.7 Tutorial
> http://www.youtube.com/watch?v=uh6AdDX7K7U
>
> This is what I have done so far:
>
> #!/usr/bin/python
>
> from Tkinter import *
> import Tkinter.MessageBox
I figured I might as well, given how I recently had to learn abo
brandon w wrote:
> On 08/13/2011 04:49 PM, Peter Otten wrote:
>>> How do I find the modules in Tkinter?
>>>
>> The simplest approach is probably to explore your file system:
>>
>> Step 1: where's Tkinter?
>>
>> $ python -c 'import Tkinter, os; print os.path.dirname(Tkinter.__file__)'
>> /us
On 08/13/2011 04:49 PM, Peter Otten wrote:
brandon w wrote:
I have tried to follow the tutorial I found here:
Python 2.7 Tutorial
http://www.youtube.com/watch?v=uh6AdDX7K7U
This is what I have done so far:
#!/usr/bin/python
from Tkinter import *
import Tkinter.MessageBox
myapp = Tk()
m
On 08/13/2011 04:49 PM, Peter Otten wrote:
`python -c 'import Tkinter, os; print
os.path.dirname(Tkinter.__file__)'`
Thanks dude. That is some really useful information. That will help me
for future coding.
I found that I needed to use "from tkMessageBox import *" to get it to work.
___
brandon w wrote:
> I have tried to follow the tutorial I found here:
>
> Python 2.7 Tutorial
> http://www.youtube.com/watch?v=uh6AdDX7K7U
>
> This is what I have done so far:
>
> #!/usr/bin/python
>
> from Tkinter import *
> import Tkinter.MessageBox
>
> myapp = Tk()
> myapp.title("This is th
I have tried to follow the tutorial I found here:
Python 2.7 Tutorial
http://www.youtube.com/watch?v=uh6AdDX7K7U
This is what I have done so far:
#!/usr/bin/python
from Tkinter import *
import Tkinter.MessageBox
myapp = Tk()
myapp.title("This is the gui title")
myapp.geometry("500x500+600+600
11 matches
Mail list logo