Hi all ,
I got 2 questions for you guys.
The fist question:
I wrote small Tkinter app while laerning about the Radiobutton widget,
and I added a "Quit" button, like this:
bb=Button(root, text="Quit", fg="BLUE", command=root.quit).pack()
When I pressed the button the app crashed and I got an error
On Sat, 04 Dec 2004 14:38:06 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Mark Kels wrote:
>
>
> > Hi all ,
> > I got 2 questions for you guys.
> >
> > The fist question:
> > I wrote small Tkinter app while laerning about the Radiobutton widge
Hi all,
I got 2 questions:
1. How to get input from Tkinter widgets like Text, Entry,
Checkbutton, Scale etc (almost any widget that isn't a button) ?
for some reason its not explained clearly in any tutor I looked in...
2. How to print text using python ( through the printer ) ?
__
Hi all ,
I got some Tkinter related questions for a project that I'm making:
1. How to add an image to a button ?
2. How can I print text using Tkinter (I want it to be cross platform,
so I cant use modules like win32print ) ?
3. How to I make the program to always open in a full window ?
Thanks a
> I find the easiest way is to create an PhotoImage object attach
> the graphic file(jpg,bmp,gif) to that and assign the PhotoImage
> object to the Button.image property. You can "animate" the image
> by simply reassigning the file to the underlying PhotoImage onject.
Thanks, but a practical expla
On Mon, 20 Dec 2004 18:21:13 +1300, Liam Clarke <[EMAIL PROTECTED]> wrote:
> from Tkinter import *
> import Image, ImageTk
> root = Tk()
> img = Image.open('SonicCruiser.gif')
> phi = ImageTk.PhotoImage(img)
> button = Button(root, image=phi)
> button.pack()
> root.mainloop()
Thank you !!
But I d
Hello to all :-)
I'm writing a CGI script (one of my first ever CGI programs and I'm
using this tutor to learn CGI: http://www.oreilly.com/openbook/cgi/
This isn't a python tutor, but the introductions says that any
language will be good for this tutor.
Anyway, I got to the Using Environment Varia
> Morning Mark,
>
> Happy New Year, Merry Christmas, and a jolly Winter Solstice Season!
>
> Whenever you're talking about how to do something in Windows it REALLY
> helps when you include WHICH windows you're working with.
>
> I believe the following will allow you to manipulate windows
> envir
I'm learning python for a few months now, and I would like to get some
experience by participating in a good, open source, and small
python-CGI project.
I searched freshmeat.net but couldn't find anything interesting
(except __ but I think its dead...).
Anyone knows of a good small and open source
HI all !
I started to read the following code (I will start working on it when
this problem is fixed) and it looks OK while I read it. But for some
reason it doesn't work...
Here is the code:
# MailList is copyright (c) 2000 of Programmed Integration
# You may use this code in any way you see fit,
On Fri, 7 Jan 2005 11:16:29 -0800 (PST), Danny Yoo
<[EMAIL PROTECTED]> wrote:
>
>
> On Fri, 7 Jan 2005, Mark Kels wrote:
>
> > I started to read the following code (I will start working on it when
> > this problem is fixed) and it looks OK while I read it. But
Hi all.
How can I send SQL querys to a MySQL database with a python-CGI program ?
Thanks.
--
1. The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners.
2. Unix is user friendly - it's just picky about it's friends.
3. Documentation is like sex: w
Hi all,
I want to make an IRC bot with python...
The problem is that I cant find any good information about this topic
(not even documentation for the irclib module).
Does anyone here have some experience with python programming for IRC
(clients, bots, etc) and can give me some simple source code
Hello,
I got some Tkinter questions that I need the answer for to complete a
little project of mine:
1. How can I make the program to open in a X*Y sized window ?
2. How can I open another window from the first one (without closing it) ?
3. How can I add a file browser for my app (like the one you
Hi all.
Whats wrong here ?? :
from Tkinter import *
def p_text():
print text.get()
root=Tk()
text=Text(root).pack()
button=Button(root,text="Click here!!",command=p_text).pack()
root.mainloop()
I get an error that says that nontype object has no attribute 'get'...
whats wrong ??
Thanks.
--
Hi all.
As I understand, .get() has to get an index argument to get the text
from the Text index...
The problem is that I dont realy understand what is this index thing
and what index do I need to give to the function so I'll get all the
text in the widget.
Any ideas ??
Thanks !
--
1. The day M
Hi list.
How can I download a file from an HTTP server ?
I checked the documentation but couldn't find what I need.
Thanks!
--
1. The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners.
2. Unix is user friendly - it's just picky about it's frien
On Sat, 12 Feb 2005 09:25:10 -0500, Jacob S. <[EMAIL PROTECTED]> wrote:
> urllib or urllib2 or maybe httplib maybe?
>
> urlopen( url[, data])
>
> Open the URL url, which can be either a string or a Request object.
> data should be a string, which specifies additional data to send to t
On Sun, 13 Feb 2005 08:03:45 -0800, Lobster <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> i'm interested in building a gui for some code we have. I'm after
> pointers on gui programming, and a recommendation on a cross platform
> gui library, wxpython? pythoncard, qt? What do people use. Ideally i'
Hi all.
I'm trying to build a simple port scanner (just to learn sockets).
here is the code (doesn't work) :
import socket
sk=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host=raw_input("Enter name of host to scan: ")
start_port=input("Enter the start port: ")
end_port=input("Enter the end por
Hi all.
First, here is the code I have a problem with (I got same problem in
my project) :
from Tkinter import *
def go():
e.get()
print e
main=Tk()
e=Entry(main)
e.pack()
b=Button(main,text='OK',command=go()).pack()
main.mainloop()
For some reason the function is called before I click th
Hi list !
Here is a small port scanner I made to practice sockets and GUI
programming ( WARNING: the program crash when scan button is clicked):
#--Imports--
from Tkinter import *
import socket
#--The result GUI window function-
def result():
global result_t #I
On Mon, 21 Feb 2005 13:21:35 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote:
> How far does it get? How do you know?
>
> I would put some debug print statements in. Also you should call sk.close()
> in the else clause of
> scan(). Finally, I don't think you will see any output in the result window
Hi list.
Here are the questions (-:
1. How do I make a progress bar in Tkinter ?
2. I got a while loop which does the port scan itself. How can I end
it while its working ?
3. For some reason the scan is too slow (2-3 seconds for a port). Is
there a way to make it faster (other port scanner work a
On Sun, 27 Feb 2005 03:24:07 -0800 (PST), Shitiz Bansal
<[EMAIL PROTECTED]> wrote:
>
> The ports which do not respond are the ones which take
> most of the time.You can use the timer object to fix
> the time for each port.For eg. if a port does not
> respond within .1 sec it can reasonably be expe
On Sun, 27 Feb 2005 16:00:12 -, Alan Gauld <[EMAIL PROTECTED]> wrote:
> One option:
> Use a set up gif images and update the image periodically
> OR
> Use a canvas and redraw a rectangle slightly larger every
> time through the scanning loop.
Thats think this is the easy part...
The hard part
Can anyone give me a very simple example on thread programming ?
I looked at some tutorials but they don't really make sense...
Thanks in advance
--
1. The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners.
2. Unix is user friendly - it's just
On Tue, 1 Mar 2005 12:25:37 -0800 (PST), Shitiz Bansal
<[EMAIL PROTECTED]> wrote:
>
> Here is a simple program
>
> class abc(threading.Thread):
> def __init__(self):
> threading.Thread.__init__(self)
> self.x=1 etc. etc.
> self.cont_flag=1
> def run(self):
>
On Wed, 2 Mar 2005 14:48:11 -0800 (PST), Shitiz Bansal
<[EMAIL PROTECTED]> wrote:
> The thread finishes when:
> 1.The run method finishes.
> 2.In case of the loop- you may -
>
> >>> import threading
> >>> class abc(threading.Thread):
> def __init__(self):
> threading.Thread
On Thu, 3 Mar 2005 14:31:55 +, Gwyn Evans <[EMAIL PROTECTED]> wrote:
> Hi,
> The one thing that stands out is that when you subclass Thread as
> you do, you need to override the 'run' method, which will get called
> as a result of you calling 'start()'.
> You're calling start(), but you've
On Thu, 3 Mar 2005 16:36:05 +, Gwyn Evans <[EMAIL PROTECTED]> wrote:
> How are you trying to start another scan? You'd have to create a
> new instance, you can't just call app.start() again.
Thanks allot !!
This is exactly what I was doing wrong.
Now it works :)
--
1. The day Microsoft ma
Hi list !
I want to know whats so great in OOP...
I have learned some of it, but I don't understand why everybody like
it so much...
Can anyone give me an example for a task that could be done only with
OOP or will be much simpler to do with it ?
Thanks in advance.
--
1. The day Microsoft makes
Hi list.
I have downloaded some code from useless python that was writen buy a
guy named Sammy Mannaert. The code should show that python can be
unreadable, and it really is...
Can anyone explain to me how does this thing works ??
Here is the code (it prints "python readable ?"):
f=lambda x="8<:47
Hi list !
Does anyone here knows of a way to connect to ICQ with Python?
Thanks in advance.
--
1. The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners.
2. Unix is user friendly - it's just picky about it's friends.
3. Documentation is like sex:
On 4/29/05, tanja pislar <[EMAIL PROTECTED]> wrote:
> try pyICQ-t, (it's an ICQ transport for jabber implemented in python)
> http://pyicq-t.blathersource.org/
>
> regards,
> tanja
Thanks, but its to complicated for my needs. What I need is a simple
module that will allow me to connect to ICQ and
Hi list.
I want to make a program to lock folders (so the user can only access
them if he knows the password) under win32, the only problem is that I
have no idea how to start or what to do. Do you guys have any ideas of
how to do it?
Thanks!
--
1. The day Microsoft makes something that doesn'
Hi list.
I want to make a virtual keyboard with Tkinter.
Can I have some pointers on how to do it?
Will it be hard (it doesn't look so hard...)?
Thanks.
--
1. The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners.
2. Unix is user friendly - i
On 7/14/05, luke <[EMAIL PROTECTED]> wrote:
> I don't think it will be hard, but it depends what you want to pass
> keypresses to.
> If you want your virtual keyboard to type in any program you will have to
> deal with
> focus issues and it seems to me that would be hard, if possible.
> but if you
On 7/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> You would need some way of getting a handle for the widget you want to type
> into.. I don't know how to do this (or even if you can), but I wonder if you
> might have more luck if you used PythonWin and the Microsoft factory classes
> to
39 matches
Mail list logo