[Tutor] Support

2005-04-08 Thread Alberto Troiano
I am trying to make an application with Python 2.3.4, PIL 1.1.5 and I want to convert an image file to binary so I can store it in a MySQL database and then retrieve it and show it from binary to Image again so I can show the image Please help Thanks Alberto ___

Re: [Tutor] Support

2005-04-08 Thread Alberto Troiano
tead of RGB ima.show() Thanks in advanced Alberto>From: Brian van den Broek <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] Support >Date: Fri, 08 Apr 2005 11:03:39 -0400 > >Alberto Troiano said unto the world upon 2

Re: [Tutor] Support

2005-04-08 Thread Alberto Troiano
thon.org >Subject: Re: [Tutor] Support >Date: Fri, 08 Apr 2005 11:59:24 -0400 > >Alberto Troiano wrote: >>I tried the code below but the image gets messed up: >> >>import Image >> >>im=Image.open("auto.jpg") >> >>im.show() ###This is t

RE: [Tutor] Re: Support

2005-04-08 Thread Alberto Troiano
Thank you Jeff Case Closed until I test it with MySQL blob typeI'll let you know hot it went Thanks guys AlbertoFrom: "Jeffrey Maitland" <[EMAIL PROTECTED]> >To: tutor@python.org >Subject: [Tutor] Re: Support >Date: Fri, 08 Apr 2005 15:00:19 -

Re: [Tutor] Support

2005-04-09 Thread Alberto Troiano
machine that has the database and I forgot to copy the error :/) the fields in MySQL version 4 are Cod_Imagen int(4) auto_increment primary key, data longblob) Thanks in advanced Alberto  >From: Kent Johnson <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] Support >Da

Re: [Tutor] str.split and quotes

2005-04-09 Thread Alberto Troiano
Sorry to bother you that much. I know I have a lot to learn yet but I hope you can teach me. I see that someone posted something about running functions with a timer. How can I do this??? I tried to emulate this with the function time.sleep(sec) but all widgets gets locked and they don't refresh th

RE: [Tutor] import.... (Joseph Q.)

2005-04-09 Thread Alberto Troiano
Hey Joseph Why do you want to unload a module? I don't understand why you need to "unimport" but I do know that every module has a constructor and a deconstructor maybe you can start from there but I will need an example or more info about why you need to do this Regards Alberto>From: Josep

[Tutor] Re: [Python-Help] Support with Image

2005-04-11 Thread Alberto Troiano
the path and the photos in HD Thanks in advanced Alberto >From: Danny Yoo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [Python-Help] Support with Image >Date: Sat, 9 Apr 2005 14:37:03 -0700 (PDT) > > > Hey Danny it

[Tutor] Re: [Python-Help] Support with Image

2005-04-11 Thread Alberto Troiano
Matthew Dixon Cowles <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [Python-Help] Support with Image >Date: Sat, 9 Apr 2005 13:52:52 -0500 (CDT) > >Dear Alberto, > > > but now I don&#

Re: [Tutor] str.split and quotes

2005-04-11 Thread Alberto Troiano
Thanks Kent but now I need you to explain me the code :( To give you a graphic example how can make this function to run every 5 seconds def foo():     print "Hello world!" Thanks in advanced  Alberto>From: Kent Johnson <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL

RE: [Tutor] Cell Bio Newbie Here

2005-04-11 Thread Alberto Troiano
Hey Gary password="foobar" ### the variable password has to be here because you are referiencing before the assignment inside the while sentence. You can also set it to password="" and still will work because you have to tell (in this example) that password is a reserved word(variable) ###

Re: [Tutor] str.split and quotes

2005-04-11 Thread Alberto Troiano
gards Alberto>From: Kristian Zoerhoff <[EMAIL PROTECTED]> >Reply-To: Kristian Zoerhoff <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], tutor@python.org >Subject: Re: [Tutor] str.split and quotes >Date: Mon, 11 Apr 2005 11:03:13 -

Re: [Tutor] str.split and quotes

2005-04-11 Thread Alberto Troiano
Gotcha!! I'll try it with my app and let you know how it went Thanks Alberto  Gaucho>From: Kent Johnson <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] str.split and quotes >Date: Mon, 11 Apr 2005 16:55:22 -0400 > >Alberto Troiano wrote: >&g

Re: [Tutor] Cell Bio Newbie Here

2005-04-11 Thread Alberto Troiano
ce more to take you out of the while loop Test it and let me know how it went, and also if I have a few problems with my writing please let me know as I will try to correct them Regards Alberto    >From: Brian van den Broek <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]&

Re: [Tutor] Cell Bio Newbie Here

2005-04-11 Thread Alberto Troiano
Sorry In the option 2 in the last IF clause there is a missing = it should be if password == "unicorn" and not if password="unicorn" Regards Alberto   Gaucho>From: Brian van den Broek <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: [EM

Re: [Tutor] Cell Bio Newbie Here

2005-04-12 Thread Alberto Troiano
RegardsAlberto  Gaucho>From: Brian van den Broek <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] Cell Bio Newbie Here >Date: Mon, 11 Apr 2005 19:11:50 -0400 > >Alberto Troiano said unto the world upon 2005-04-11

[Tutor] Question about Frames and Scrollbars

2005-04-12 Thread Alberto Troiano
Hi everyone I don't know if anyone posted something similar but I'll shoot. Is there anyway to Scroll over a Frame?? Let me put this under water.  I made a 2D blueprint inside a frame. I'm creating labels dynamically depending on how many rows and columns I want. Suppose you have an 8x8 matriz of l

Re: [Tutor] Question about Frames and Scrollbars

2005-04-13 Thread Alberto Troiano
The second option will do the trick. I use Pmw.Combobox but I didn't know there was a ScrolledFrame Thanks a lot Regards Alberto  Gaucho>From: [EMAIL PROTECTED] >To: "tutor@python.org" >Subject: Re: [Tutor] Question about Frames and Scrollbars >Date: Wed, 13 Apr 2005 10:10:34 +1200 (NZST) > >A cou

RE: [Tutor] Python backwards program

2005-04-13 Thread Alberto Troiano
You can do this: >>> word=raw_input("Type the word: ")Type the word: Kokiri Forest>>> print wordKokiri Forest>>> print word[::-1]tseroF irikoKBut I saw that this gave you a hard time so this is an alternate longer way: >>> backword="">>> counter=len(word) >>> while counter!=0: backword+

Re: [Tutor] Python backwards program

2005-04-13 Thread Alberto Troiano
in a little more specific (that's only applied to me :)) Regards Alberto  Gaucho>From: Feziwe Mpondo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], tutor@python.org >Subject: Re: [Tutor] Python backwards program >Date: Wed, 13 Apr

[Tutor] Multithreading and Daemon Program

2005-04-13 Thread Alberto Troiano
Hey Back again I'm need to make a daemon application and to manage multithreading The program has to check every 3 seconds if is there images inside one folder (That's only for you to know what I'm doing in case you needed) My first problem is that I can imagine a way to do a daemon.How can I make

Re: [Tutor] Multithreading and Daemon Program

2005-04-13 Thread Alberto Troiano
or every user or one for each user?? How do I achieve this?? Thanks Alberto  Gaucho>From: Pierre Barbier de Reuille <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]>, Python Tutor >Subject: Re: [Tutor] Multithreading and Daemon Program >Date: Wed, 13 Apr 2

RE: [Tutor] i need to see a var from any where in my app - im clueless

2005-04-13 Thread Alberto Troiano
Have you tried to call file2.class_of_file2.funcl Let me know how it went Regards Alberto  Gaucho>From: pxlpluker <[EMAIL PROTECTED]> >To: tutor@python.org >Subject: [Tutor] i need to see a var from any where in my app - im clueless >Date: Wed, 13 Apr 2005 16:19:05 -0400 > > i have read

RE: [Tutor] Question regarding the len function of a list while using aloop

2005-04-14 Thread Alberto Troiano
Hey Ben The problem is quite simple. You're trying to get the lenght of an INTEGER. That's why it gives you the error. In the position 1 of your list you have an integer and unless you call str(int) you won't be able to get the lenght. Moving on, there is another way to accomplish the loop using th

Re: [Tutor] high score lists

2005-04-14 Thread Alberto Troiano
Hi I've read somewhere that the appropiate way to make a best score list is with a dictionarie So you'll have something like this: best_score={"Peter":100,"Jhon":23} Best Regards Alberto  Gaucho>From: Kent Johnson <[EMAIL PROTECTED]> >CC: Python tutor >Subject: Re: [Tutor] high score lists >Date:

[Tutor] TKinter and things over Linux

2005-04-16 Thread Alberto Troiano
Hi everyone   I recently switch to Linux Red Hat AS 3.0 because I have to make a daemon to run in this OS and I'm having a few problems   I've struggle to replace Python 2.2(machine default) to 2.3.4 (tough but could)   Now I want to program a GUI with Tkinter but when I put the sentence from TKin

[Tutor] TKinter and things over Linux

2005-04-16 Thread Alberto Troiano
Hi everyone   Sorry to bother you again but I don't know where else to go   I recently switch to Linux Red Hat AS 3.0 because I have to make a daemon to run in this OS and I'm having a few problems   I've struggle to replace Python 2.2(machine default) to 2.3.4 (tough but could)   Now I want to p

Re: [Tutor] TKinter and things over Linux

2005-04-17 Thread Alberto Troiano
sn-t load Tkinter what can I do/ Thanks in advanced Alberto >From: Bill Campbell <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: tutor@python.org >Subject: Re: [Tutor] TKinter and things over Linux >Date: Sat, 16 Apr 2005 15:50:56 -0700 > >On Sat, Apr 1

Re: [Tutor] TKinter and things over Linux

2005-04-18 Thread Alberto Troiano
? Thanks in advanced Alberto Gaucho From: Danny Yoo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: Tutor >Subject: Re: [Tutor] TKinter and things over Linux >Date: Mon, 18 Apr 2005 00:04:03 -0700 (PDT) > > > >On Sun, 17 Apr 2005, A

Re: [Tutor] TKinter and things over Linux

2005-04-18 Thread Alberto Troiano
have a problem with the MySQL database but that doesn't fit in this forum ;) Regards Alberto From: Michael Lange <[EMAIL PROTECTED]> To: tutor@python.org Subject: Re: [Tutor] TKinter and things over Linux Date: Mon, 18 Apr 2005 17:09:28 +0200 On Mon, 18 Apr 2005 13:24:03 + &quo

RE: [Tutor] Installation Routines (Joseph Quigley)

2005-04-18 Thread Alberto Troiano
What exactly do you want to do If you want to make a windows installer then you should look for Create Install It's a very simple software that can copy files to a folder and deploy an executable Please post further info about what you want to achieve so I can assist you a bit more Re

Re: [Tutor] TKinter and things over Linux

2005-04-19 Thread Alberto Troiano
I do?? Please help me I'm about to throw my machine over the windows (and I live on the 6th) Thanks in advanced Alberto http://graphics.hotmail.com/emvamp.gif"; width=12> Gaucho From: "Alberto Troiano" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] CC: tutor@python.org Subje

Re: [Tutor] TKinter and things over Linux

2005-04-19 Thread Alberto Troiano
nks in advanced Alberto http://graphics.hotmail.com/emvamp.gif"; width=12> Gaucho From: Max Noel <[EMAIL PROTECTED]> To: "Alberto Troiano" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], tutor@python.org Subject: Re: [Tutor] TKinter and things over Linux Date: Tue, 19 Apr

Re: [Tutor] TKinter and things over Linux

2005-04-19 Thread Alberto Troiano
e link you attached thanks again regards Alberto From: Danny Yoo <[EMAIL PROTECTED]> To: Alberto Troiano <[EMAIL PROTECTED]> CC: Tutor Subject: Re: [Tutor] TKinter and things over Linux Date: Tue, 19 Apr 2005 10:18:11 -0700 (PDT) On Tue, 19 Apr 2005, Alberto Troiano wrote: > Sorry I have M

Re: [Tutor] TKinter and things over Linux

2005-04-19 Thread Alberto Troiano
GOTCHA! I let you know guys how it went Bye for now Alberto From: Max Noel <[EMAIL PROTECTED]> To: "Alberto Troiano" <[EMAIL PROTECTED]> CC: tutor@python.org, [EMAIL PROTECTED] Subject: Re: [Tutor] TKinter and things over Linux Date: Tue, 19 Apr 2005 20:01:31 +0100 On

Re: [Tutor] TKinter and things over Linux

2005-04-20 Thread Alberto Troiano
o I'm desperate Just in case I'm using MySQL 3.23 (Default MySQL Red Hat 9.0, but I don't see how that can affect the module) Thanks in advanced Alberto From: "Alberto Troiano" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] CC: tutor@python.org Subject: Re: [Tutor] TKinte

Re: [Tutor] TKinter and things over Linux

2005-04-20 Thread Alberto Troiano
problem Thanks again Alberto From: Max Noel <[EMAIL PROTECTED]> To: "Alberto Troiano" <[EMAIL PROTECTED]> CC: tutor@python.org Subject: Re: [Tutor] TKinter and things over Linux Date: Wed, 20 Apr 2005 17:15:49 +0100 On Apr 20, 2005, at 16:52, Alberto Troiano wrote: Hey Didn'

RE: [Tutor] crash - switching between text window and graphics/gamewindow (high score)

2005-04-20 Thread Alberto Troiano
Hey I'm curious What extension are you using on your game??? is it .py??? And what OS are you running the game??? Another thing. I made a space ship game to learn Python. Is there a possibility that we exchange the games so we can know differents points of view

Re: [Tutor] TKinter and things over Linux

2005-04-20 Thread Alberto Troiano
send it to you Again, sorry for my ignorance and lack of info Regards Alberto From: Danny Yoo <[EMAIL PROTECTED]> To: Alberto Troiano <[EMAIL PROTECTED]> CC: Tutor Subject: Re: [Tutor] TKinter and things over Linux Date: Wed, 20 Apr 2005 13:33:15 -0700 (PDT) > >>I couldn't

RE: [Tutor] crash - switching between text window andgraphics/gamewindow (high score)

2005-04-20 Thread Alberto Troiano
pecific error, which would make researching the program on google or in forum archives much easier! At the moment, I'm getting nothing (or too much information about unrelated problems). Thanks for any suggestions! -- Forwarded message -- From: Alberto Troiano <[EMAIL PROTE

Re: [Tutor] crash - switching between text window and graphics/gamewindow (high score)

2005-04-20 Thread Alberto Troiano
now so you have to figure out another way to reverse the list Regards Alberto From: "D. Hartley" <[EMAIL PROTECTED]> Reply-To: "D. Hartley" <[EMAIL PROTECTED]> To: Alberto Troiano <[EMAIL PROTECTED]> Subject: Re: [Tutor] crash - switching between text window an

Re: [Tutor] crash - switching between text window and graphics/gamewindow (high score)

2005-04-21 Thread Alberto Troiano
eb-based system over Linux) In the mean time only have to say that your game rocks!! I'll send you mine next week Regards Alberto http://graphics.hotmail.com/emvamp.gif"; width=12> Gaucho From: "D. Hartley" <[EMAIL PROTECTED]> Reply-To: "D. Hartley"

Re: [Tutor] crash - switching between text window and graphics/gamewindow (high score)

2005-04-21 Thread Alberto Troiano
eb-based system over Linux) In the mean time only have to say that your game rocks!! I'll send you mine next week Regards Alberto http://graphics.hotmail.com/emvamp.gif"; width=12> Gaucho From: "D. Hartley" <[EMAIL PROTECTED]> Reply-To: "D. Hartley"

Re: [Tutor] TKinter and things over Linux

2005-04-21 Thread Alberto Troiano
Hey all Thanks for all your help. I solved the problem by installing ALL the packages of Red Hat 9.0 so basically I have 5 GB of OS in my HD haha :D I must something you said about the development libraries but I really don't have time to find out which one so I install them all Thanks again an

[Tutor] Help with daemon

2005-04-27 Thread Alberto Troiano
Hi everyone Again disturbing the peace of the TUTOR :D I'm making an application to check every few seconds for photos uploaded via ftp The users will program their upload time via web page (made in php). The time is saved in a MySQL database so I will check for all the created users if they ar

Re: [Tutor] Help with daemon

2005-04-28 Thread Alberto Troiano
el <[EMAIL PROTECTED]> To: "Alberto Troiano" <[EMAIL PROTECTED]> CC: tutor@python.org Subject: Re: [Tutor] Help with daemon Date: Wed, 27 Apr 2005 23:38:00 +0100 On Apr 27, 2005, at 22:35, Alberto Troiano wrote: I'm gonna give you an example: The program will check for new u

RE: [Tutor] Issue with "Entry"/GUI/PIL

2005-04-29 Thread Alberto Troiano
Replace the 0.0 for only 0 But you have a problem. You are inserting the question and that's what the if clause analyze so it will be always wrong you have to add another Entry and a submit button so it will analyze the result of the second Entry Regards Alberto From: Brian Wurtzel <[EMAIL PROT

[Tutor] Re: Issue with "Entry"/GUI/PIL

2005-04-30 Thread Alberto Troiano
Hey It's a matter of fancyness (Sorry, I think I invented an English word, :D) you are asking in the same Entry you want them to answer, so in order to answer your question, I'll have to delete the question. Secondly, how can you analyze if you don't give the chance to the user to type an answer?

[Tutor] Problem with threading

2005-05-02 Thread Alberto Troiano
Hey all This is the program I need to do and I haven't been able to figure out >From a web page (PHP), I'm creating users and an IP Camera that sends me photos all the time. The user configure his recording time and then a daemon has to check for the photos that does not belong to the recordin

Re: [Tutor] Problem with threading

2005-05-02 Thread Alberto Troiano
Hey I have the users config in a database so the use of a text file is double work In answer to Matt the cameras push the photos via ftp at my server at 1 photo every 3 seconds What can I do Regards Alberto >From: Danny Yoo <[EMAIL PROTECTED]> >To: Alberto Tro

Re: [Tutor] Problem with threading

2005-05-04 Thread Alberto Troiano
artes, 03 de Mayo de 2005 03:58 a.m. Para: Alberto Troiano CC: Tutor; [EMAIL PROTECTED] Asunto: Re: [Tutor] Problem with threading On Tue, 3 May 2005, Alberto Troiano wrote: > In answer to Matt the cameras push the photos via ftp at my server at 1 > photo every 3 seconds Hi Alberto, Just

Re: [Tutor] python challenges

2005-05-06 Thread Alberto Troiano
Hey I'm stucked in number 5 It says pronounce it and there is nothing else not in page nor in the source code What can I do?? I know someone is at 7 now What's this riddler about??? regards Alberto >From: Danny Yoo <[EMAIL PROTECTED]> >To: Max Noel <[EMAIL PROTECTED]> >CC: Python tutor >Subje

Re: [Tutor] Fwd: Fwd: Python riddles

2005-05-09 Thread Alberto Troiano
>From: "D. Hartley" <[EMAIL PROTECTED]> >Reply-To: "D. Hartley" <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >Subject: Re: [Tutor] Fwd: Fwd: Python riddles >Date: Sat, 7 May 2005 17:45:32 -0700 > >Alberto, "banner" i

Re: [Tutor] challenges - general

2005-05-09 Thread Alberto Troiano
Hey I have recently got stuck (jejeje) on riddle 7 Yes I managed to solve riddle 6 after hours of struggle with the riddle Now I don't know what to do because there is no hint anywhere Regarding to Denise I would say don't give up, I didn't know anything that helped to so

Re: [Tutor] zip question

2005-05-10 Thread Alberto Troiano
The problem is that you have to get the content before you can get the filename or comment of the files. You have to do something like this import zipfile file=zipfile.ZipFile("yourfile.zip") f=file.getinfo(name_of_the_file_inside_yourfile.zip) And then you can take the comments and filenames y

Re: [Tutor] zip question

2005-05-10 Thread Alberto Troiano
tell me where to start and I will try to get from there Thanks Alberto >From: "D. Hartley" <[EMAIL PROTECTED]> >Reply-To: "D. Hartley" <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >Subject: Re: [Tutor] zip question >Date: Tue

Re: [Tutor] RGB, images

2005-05-10 Thread Alberto Troiano
Hey Can you be a little more specific on how to get certain part of the image to analyze? I managed to split it in all its bands (though I don't know what is that) How can I work only with the gray part?? Thanks Alberto >From: "D. Hartley" <[EMAIL PROTECTED]> >Reply-To: "D. Hartley" <[

[Tutor] Riddle 8

2005-05-11 Thread Alberto Troiano
Hey I know it is supposed to be one of the easyiest and I know what I have to find(two nouns) and I know from where (two strings on the page)(it's very difficult to avoid spoilers) but I don't know how. And I see the hint when you try to get to 9 but I don't know what it means Any hints?

Re: [Tutor] Riddle 8

2005-05-11 Thread Alberto Troiano
Nevermind It was easy and I figured out But now I'm having serious problems with number 9 Do I really have to connect the dots And how can I do that using the obviuos module? Thanks Alberto >From: "Alberto Troiano" <[EMAIL PROTECTED]> >To: tutor@python.org

[Tutor] Compare hours

2005-05-12 Thread Alberto Troiano
Hey everyone I have a question. I need to compare two dates and times but it has to be quick. (With quick I mean that the algorythm has to be simple in efficient Here is the deal: day="thursday" hour1="15:30" hour2="16:30" all of the above are strings I have to get the system date and time an

[Tutor] Help with time module

2005-05-13 Thread Alberto Troiano
Hey everyone I have two strings like this hour1="14:30" hour2="15:30" I want to compare them like this: if local_time between hour1 and hour2: print True else print False Can anyone tell me how to make that comparison to work??? (I don't know how to take only the time in this form

Re: [Tutor] Help with time module

2005-05-13 Thread Alberto Troiano
Fri, 13 May 2005 09:56:17 -0400 > >Alberto Troiano wrote: > > I have two strings like this > > > > hour1="14:30" > > hour2="15:30" > > > > I want to compare them like this: > > > > if local_time between hour1 and hour2: >

[Tutor] Linux variable to Python

2005-05-13 Thread Alberto Troiano
Hey Another problem Here is an example of what I want to do: I run over Linux shell the following command: [EMAIL PROTECTED] root]# fec=cam`date +%Y%m%d%H%M%S`.jpg [EMAIL PROTECTED] root]# echo $fec cam2005051255702.jpg [EMAIL PROTECTED] root]# mv hola.txt grabacion/$fec To explain for those w

Re: [Tutor] Linux variable to Python

2005-05-13 Thread Alberto Troiano
And again I'm gonna say BINGO! It's like you were doing the same app as I am Thanks Alberto >From: Danny Yoo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] Linux variable to Python >Date:

[Tutor] Tkinter questions

2005-05-16 Thread Alberto Troiano
Hey Tkinter question How can I change the background color of a label?? How can I change the font-size and make it BOLD?? Regards Alberto ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tkinter questions

2005-05-17 Thread Alberto Troiano
Thanks for the reply I read the link and I think I've got all what I need (at least for now) Thanks again Regards Alberto >From: [EMAIL PROTECTED] >To: Tutor Tutor >Subject: Re: [Tutor] Tkinter questions >Date: Tue, 17 May 2005 11:03:45 +1200 (NZST) > >Quoting

[Tutor] Troubles with Python modules

2005-05-17 Thread Alberto Troiano
Hey I'm working on Python 2.2 over Linux REd Hat 9.0 and here is the code I have import os import sys import MySQLdb import datetime import time class conexion(object): def __init__(self): self.db = MySQLdb.connect(host="localhost", user="administrador", passwd="123456",db="segurida

Re: [Tutor] Troubles with Python modules

2005-05-17 Thread Alberto Troiano
ays I have installed Linux Red Hat with ALL packages Can I add datetime module to Python 2.2.2 ?? If so how??? Regards Alberto From: Danny Yoo <[EMAIL PROTECTED]> To: Alberto Troiano <[EMAIL PROTECTED]> CC: Tutor Subject: Re: [Tutor] Troubles with Python modules Date: Tue, 17

Re: [Tutor] Troubles with Python modules

2005-05-17 Thread Alberto Troiano
see I'm in the middle of the wall and the sword thanks for any help you can give me Best Regards Alberto >From: Danny Yoo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: Tutor >Subject: Re: [Tutor] Troubles with Python modules >Date: Tue, 17 May

[Tutor] Menu help

2005-05-17 Thread Alberto Troiano
Hey I know I posted so many things but it's because I have so much to do I used to program in VB 6 but I want to learn a programming so I can I master it. I want to make a menu (Tkinter) like the one of the image attached to this email I can do the menu and submenu but I can't do the third subme

Re: [Tutor] Troubles with Python modules

2005-05-17 Thread Alberto Troiano
Here you go Each filenaem corresponds to the command Thanks in advanced Alberto From: Danny Yoo <[EMAIL PROTECTED]> To: Alberto Troiano <[EMAIL PROTECTED]> CC: tutor@python.org Subject: Re: [Tutor] Troubles with Python modules Date: Tue, 17 May 2005 14:56:52 -0700 (PDT) On Tue,

Re: [Tutor] Password

2005-05-18 Thread Alberto Troiano
Hey I think that is a good built-in way to protect your passwords, but then I don't know if a text file is the best way to store them. I think (in my opinion) I consider using a database to store tha info. There is a way to make the entry appears as *. txtPass=Entry(root,width=25,show="*") Th

Re: [Tutor] Troubles with Python modules

2005-05-18 Thread Alberto Troiano
I'm sending the commands you asked I'm still can't make it work and I don't know what else should I do I'll aprecciate any help Best Regards Alberto From: Danny Yoo <[EMAIL PROTECTED]> To: Alberto Troiano <[EMAIL PROTECTED]> CC: tutor@python.org Subject: Re:

Re: [Tutor] Troubles with Python modules

2005-05-19 Thread Alberto Troiano
Hey Is there any work around to accomplish what I want? I'm asking because I'm still with the same problem Regards Alberto >From: Danny Yoo <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject: Re: [Tutor] Troubles

[Tutor] Disable menubar

2005-05-19 Thread Alberto Troiano
Hey everyone I've read about menubars and I decided to use the MenuBar from PMW instead of Tkinter's The reason is that I couldn't find an example to make a menu with cascade submenus and another cascade submenu inside the submenu and so on. Now I want to ask if somebody knows how to accomplis

Re: [Tutor] Disable menubar

2005-05-19 Thread Alberto Troiano
now if that can be done , although I made some work around and I managed to restrict the Toplevels. If anybody wants to know how I can post the code Thanks in advanced Alberto >From: [EMAIL PROTECTED] >To: Alberto Troiano <[EMAIL PROTECTED]> >Subject: Re: [Tutor] Disable menubar

Re: [Tutor] Disable menubar

2005-05-20 Thread Alberto Troiano
Thank you very much for your help Now it's all clear Thanks again and best regards Alberto >From: "Michael P. Reilly" <[EMAIL PROTECTED]> >Reply-To: "Michael P. Reilly" <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >Subject:

Re: [Tutor] RPG game.

2005-05-20 Thread Alberto Troiano
Hey You must set dmg to a value before using it The error is that the variable dmg hasn't been asigned yet >wp = raw_input("\n\nSelect between warrior and Archer ") > >mob = 300 >hit = 0 >hp = 100 >run = "" > >while True: > while (mob > 0): > hit += 1 > mob = mob - dmg#HE

[Tutor] Crossfire problem

2005-05-20 Thread Alberto Troiano
Hey everyone I have a very big problem with two versions of Python (2.2.2 and 2.3.4) over Linux Red Hat 9.0 I'll try to be as explicit as I can In the version 2.2.2 I have the module MySQLdb running but not the datetime module. In the version 2.3.4 I have the module datetime running but not th

[Tutor] Calendar Combo Box

2005-05-23 Thread Alberto Troiano
Hey everyone Is there a built-in calendar combo box as in Visual Basic? Can anyone point me in the right direction? Thanks in advanced Alberto ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Python Date picker

2005-05-24 Thread Alberto Troiano
Hey everyone I've been searching (with no luck by the way) for a date picker combo or something like it What I need to do is validate a date field (better if it's already done) and I want to know if anyone knows about a code to do that (a made code, don't mean you to do my work). I was hoping

Re: [Tutor] Python Date picker

2005-05-24 Thread Alberto Troiano
Completeley forgot, :D I'm working over Windows, Python 2.3., GUI Tkinter Thanks in advanced Alberto http://graphics.hotmail.com/emvamp.gif"; width=12> Gaucho >From: "Lee Harr" <[EMAIL PROTECTED]> >To: tutor@python.org >Subject: Re: [Tutor] Python Date picker >Date: Wed, 25 May 2005 01:5

[Tutor] check PID

2005-05-28 Thread Alberto Troiano
Hey all I want to check if a PID number is running I have the pid number from other program and I want to check if it's alive Using Python 2.2 over Linux Red Hat 9 I tried to google but find how to know process of the app but not check for other pids Thanks ina dvanced Alberto __

[Tutor] Py2exe Problem

2005-06-02 Thread Alberto Troiano
Hey I'm having a problem with Py2exe. I created the executable but when I try to execute it it gives the following error: Traceback (most recent call last): File "NovusExtension.pyw", line 8, in ? File "Pmw\__init__.pyc", line 28, in ? WindowsError: [Errno 3] El sistema no puede hallar la r

Re: [Tutor] Py2exe Problem

2005-06-03 Thread Alberto Troiano
blt.py and pmwcolor.py also This is in case you want to make a compilation and you have the same problems I had Best Regards to all Alberto >From: [EMAIL PROTECTED] >To: "tutor@python.org" >Subject: Re: [Tutor] Py2exe Problem >Date: Fri, 03 Jun 2005 10:06:18 +1200 (NZST) &g

Re: [Tutor] Just a Python formatting question

2005-06-09 Thread Alberto Troiano
Kristiano Don't worry about it. I'm sure everyone passed over this before. The identation errors are errors in the tabulation of a line Let's take your code in example >number=78 >guess=0 > >while guess != number: > guess=input ("Guess a number:") > if guess > number: > print "To

[Tutor] Process problem

2005-06-15 Thread Alberto Troiano
Hey all I have a problem with a program You see, I have a python script made in Python 2.2 that runs every 15 minutes on Linux Red Hat 9.0 This program (which code is attached below) named levantamuertos.py (spanish for death weakener) has to check in a database if the pids stored are running

Re: [Tutor] Process problem

2005-06-15 Thread Alberto Troiano
7;re right, levantamuertos.py waits until cotascamon.py finish. What can I do since cotascamon will never die (and it doesn't have to die)? Maybe a different approach will be the solution but I can't find a way to do it Best Regards Alberto >From: Hugo González Monteverde <[EMAIL PROTECTED]>

Re: [Tutor] Process problem

2005-06-16 Thread Alberto Troiano
Jun 2005 22:04:48 + >"Alberto Troiano" <[EMAIL PROTECTED]> wrote: > >Hi Alberto, > > > Hey > > > > Let me make you understand > > > > I need that levantamuertos.py run cotascamon.py (every script with it > > differents arguments tha

Re: [Tutor] Process problem

2005-06-16 Thread Alberto Troiano
gt;die letting the others alive > >How can I do this? > >Best Regards > >Alberto >From: Michael Lange <[EMAIL PROTECTED]> >To: tutor@python.org >Subject: Re: [Tutor] Process problem >Date: Thu, 16 Jun 2005 12:19:12 +0200 > >On Wed, 15 Jun 2005 22:04:48 +000

Re: [Tutor] Process problem

2005-06-16 Thread Alberto Troiano
<[EMAIL PROTECTED]> >Reply-To: "Michael P. Reilly" <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >Subject: Re: [Tutor] Process problem >Date: Thu, 16 Jun 2005 10:40:09 -0400 > >On 6/16/05, Alberto Troiano <[EMAIL PROTECTED]> wrote: &

[Tutor] Built-in modules

2005-06-21 Thread Alberto Troiano
Hey tutors I have some classes I want to make available as built-in modules in Python 2.3.4 over Windows To make myself clear in case you don't understand I have the file List.py (a nested list C# like) and I want to be able to call the class List (which is inside the List.py) without having to

[Tutor] MineSweeper

2005-06-25 Thread Alberto Troiano
Hey Tutors I have a question I want to make a minesweeper (just for practice) but I don't what can I use to make the GUI I was thinking about buttons (click event you know) and change the background image on change Maybe there's another widget to use My doubt is that I want to be able to allow th

[Tutor] Minesweeper OOT

2005-06-28 Thread Alberto Troiano
Hey tutors Just want to inform that I'm Out Of Town(OOT) and I haven't had the chance to a PC until this very moment. Sorry I didn't reply to your help, I have just read them and I think I get the idea Thanks to all who helped me and I'll be home next Tuesday (a week from now) and I'll give y

Re: [Tutor] py2exe

2005-07-11 Thread Alberto Troiano
Hey all I had some problems with this module too but I aas able with your help to make a script that works Here it is: from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') ##setup( ##windows = [{'script': "NovusExtension.pyw"}], ##) setup( console = [{'scrip

[Tutor] Minesweeper implementing 20%, weird problem with matrixes

2005-07-13 Thread Alberto Troiano
Hey tutors I think I got this a little, but I have a very weird problem This is the code I'm using: ## class buscaminas(object): def __init__(self): self.col=0 self.marcas=Tkinter.BooleanVar() self.color=Tkinter.BooleanVar() self.sonido=T

Re: [Tutor] Minesweeper implementing 20%, weird problem with matrixes

2005-07-14 Thread Alberto Troiano
berto >From: "Alan G" <[EMAIL PROTECTED]> >To: "Alberto Troiano" <[EMAIL PROTECTED]>, >Subject: Re: [Tutor] Minesweeper implementing 20%,weird problem with >matrixes >Date: Thu, 14 Jul 2005 01:12:18 +0100 > > > I initialize them by putting

[Tutor] HTML links from Tkinter

2005-07-14 Thread Alberto Troiano
Hey tutors I was wondering I'm making an telephone guide with Tkinter and I need to show a search in a table Like most php pages do Is there any way that I can link a button to go to certain web page? and how can I do that? Another thing, I'll make a query by name and I want to show every results

Re: [Tutor] HTML links from Tkinter

2005-07-15 Thread Alberto Troiano
Thanks for the links I will try both, the tktable and multilistbox About the HTML llinks I will have to make some functions using webbrowser. I want to show some reports (tktable or multilistbox) but I want she to be able to check the same query on the web So I think that with the GET method I c

Re: [Tutor] Hy, I'm a n00b to Python, have some questions

2005-07-18 Thread Alberto Troiano
Hey Alex First of all welcome I've been programming in Python for almost 1 year now and I think I can answer two of your questions >1. Is there any decent forum were people are talking in python ? You found one of them, here you have people willing to help each others at no cost. Send an email

  1   2   >