Re: Hiding a progressbar in tkinter

2019-06-28 Thread Cecil Westerhof
MRAB writes: > On 2019-06-26 16:47, Cecil Westerhof wrote: >> I just started with GUI stuff in tkinter. I have a progressbar, but I >> want it to be only visible when it is used. So I tried the following: >> window = Tk() >> window.title(window_str) >> frame = Frame(window) >>

Re: Hiding a progressbar in tkinter

2019-06-26 Thread MRAB
On 2019-06-26 16:47, Cecil Westerhof wrote: I just started with GUI stuff in tkinter. I have a progressbar, but I want it to be only visible when it is used. So I tried the following: window = Tk() window.title(window_str) frame = Frame(window) frame.pack(side = "top", fill =

Re: Hiding a progressbar in tkinter

2019-06-26 Thread Wildman via Python-list
On Wed, 26 Jun 2019 17:47:39 +0200, Cecil Westerhof wrote: > I just started with GUI stuff in tkinter. I have a progressbar, but I > want it to be only visible when it is used. So I tried the following: > window = Tk() > window.title(window_str) > frame = Frame(window) > frame.pac

Re: Hiding code from intruders, a different slant on an old question

2015-10-08 Thread Ian Kelly
On Thu, Oct 8, 2015 at 9:46 AM, alister wrote: > Oh please > the Caesar cypher was mentioned as a simplification for the purpose of > demonstration. > it was not intended to be even a remotely serious suggestion > > which I am sure at least Denis understood when he posted his tongue in > cheek rep

Re: Hiding code from intruders, a different slant on an old question

2015-10-08 Thread alister
On Thu, 08 Oct 2015 08:44:43 -0600, Ian Kelly wrote: > On Wed, Oct 7, 2015 at 6:01 PM, Dennis Lee Bieber > wrote: >> On Wed, 7 Oct 2015 13:05:07 + (UTC), alister >> declaimed the following: >> >> >>>With a simple Cesar the method is "shift the alphabet by 'X' characters >>>and X is the key >

Re: Hiding code from intruders, a different slant on an old question

2015-10-08 Thread Ian Kelly
On Wed, Oct 7, 2015 at 6:01 PM, Dennis Lee Bieber wrote: > On Wed, 7 Oct 2015 13:05:07 + (UTC), alister > declaimed the following: > > >>With a simple Cesar the method is "shift the alphabet by 'X' characters >>and X is the key >> >>if the key is unknown then the attacker still has to brute f

Re: Hiding code from intruders, a different slant on an old question

2015-10-08 Thread cl
Dennis Lee Bieber wrote: > On Wed, 7 Oct 2015 13:05:07 + (UTC), alister > declaimed the following: > > > >With a simple Cesar the method is "shift the alphabet by 'X' characters > >and X is the key > > > >if the key is unknown then the attacker still has to brute force the > >method (admi

Re: Hiding code from intruders, a different slant on an old question

2015-10-07 Thread alister
On Wed, 07 Oct 2015 10:38:37 +0100, cl wrote: > I know questions similar to this are often asked but my reasons for > wanting to do this (and thus ways it can be done) are slightly > different. > > I have a number of little utility scripts (python and others) which I > use to automate the process

Re: Hiding code from intruders, a different slant on an old question

2015-10-07 Thread Littlefield, Tyler
On 10/7/2015 5:38 AM, c...@isbd.net wrote: > I know questions similar to this are often asked but my reasons for > wanting to do this (and thus ways it can be done) are slightly different. > > I have a number of little utility scripts (python and others) which I > use to automate the process of dec

Re: Hiding token information from users

2011-08-24 Thread Nobody
On Tue, 23 Aug 2011 06:27:39 -0700, Tobiah wrote: > I am making QR codes that cell phone users scan in order to make use of an > application. Part of the information is a token that needs to be passed > on to the server, but I'd rather not allow a person examining the QR code > to be able to see

Re: Hiding token information from users

2011-08-23 Thread Tobiah
On 08/23/2011 09:55 AM, Steven D'Aprano wrote: Tobiah wrote: I really need some sort of algorithm that will let me take an unknown string and generate the encrypted bit on the fly. Google broken for you? *wink* I had some requirements in the OP that I could not find a solution for. Seriou

Re: Hiding token information from users

2011-08-23 Thread Steven D'Aprano
Tobiah wrote: > I really need some sort of > algorithm that will let me take an unknown string and generate > the encrypted bit on the fly. Google broken for you? *wink* Seriously, there are about a bazillion algorithms for encrypting and obfuscating strings. Depending on your security requireme

Re: Hiding token information from users

2011-08-23 Thread Tobiah
On 08/23/2011 08:08 AM, Ian Kelly wrote: How many of these codes do you need, and do they only need to be decrypted at a central server? You might be able to just create random strings of whatever form you want and associate them with the tokens in a database. Then they will be completely opaque.

Re: Hiding token information from users

2011-08-23 Thread Ian Kelly
How many of these codes do you need, and do they only need to be decrypted at a central server? You might be able to just create random strings of whatever form you want and associate them with the tokens in a database. Then they will be completely opaque. -- http://mail.python.org/mailman/listinf

Re: hiding modules in __init__.py

2008-10-20 Thread Gabriel Genellina
En Sat, 18 Oct 2008 16:03:19 -0300, Brendan Miller <[EMAIL PROTECTED]> escribió: How would I implement something equivalent to java's package private in python? Say if I have package/__init__.py package/utility_module.py and utility_module.py is an implementation detail subject to change.

Re: hiding modules in __init__.py

2008-10-20 Thread Chris Rebert
On Sat, Oct 18, 2008 at 12:03 PM, Brendan Miller <[EMAIL PROTECTED]> wrote: > How would I implement something equivalent to java's package private in > python? > > Say if I have > > package/__init__.py > package/utility_module.py > > and utility_module.py is an implementation detail subject to chan

Re: Hiding tracebacks from end-users

2007-10-24 Thread Matthew Woodcraft
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > I'm writing a command-line application that is meant to be relatively > user friendly to non-technical users. > Consequently, I'd like to suppress Python's tracebacks if an error does > occur, replacing it with a more friendly error message. I'm doin

Re: Hiding tracebacks from end-users

2007-10-23 Thread Alan Meyer
On Oct 23, 12:07 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: ... > if expert_mode: > # experts get the full traceback with no hand-holding. > raise > else: > # print a more friendly error message ... Another approach is to always print a frien

Re: Hiding tracebacks from end-users

2007-10-23 Thread kyosohma
On Oct 23, 11:07 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > I'm writing a command-line application that is meant to be relatively > user friendly to non-technical users. > > (Some wags might like to say that "user friendly" and "command-line > application" are, by definitio

Re: Hiding tracebacks from end-users

2007-10-23 Thread myonov
On Oct 23, 7:07 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > I'm writing a command-line application that is meant to be relatively > user friendly to non-technical users. > > (Some wags might like to say that "user friendly" and "command-line > application" are, by definition

Re: Hiding Console Output

2006-08-04 Thread John Savage
"Kkaa" <[EMAIL PROTECTED]> writes: >I'm using the os.system command in a python script on Windows to run a >batch file like this: > >os.system('x.exe') Is .exe really a batch file? >The third-party program x.exe outputs some text to the console that I >want to prevent from being displayed. Is th

Re: Hiding Console Output

2006-08-03 Thread Simon Forman
Kkaa wrote: > This seems like the right thing to do, but it runs the program in the > background, and I need my program to wait until the x.exe has finished. > I tried using this code: > > p = > subprocess.Popen("x.exe",shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE, > stderr=subprocess.P

Re: Hiding Console Output

2006-08-03 Thread Kkaa
This seems like the right thing to do, but it runs the program in the background, and I need my program to wait until the x.exe has finished. I tried using this code: p = subprocess.Popen("x.exe",shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE, stderr=subprocess.PIPE) sts = os.waitpid(p.p

Re: Hiding Console Output

2006-08-02 Thread placid
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

Re: Hiding Console Output

2006-08-02 Thread kyle.tk
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

Re: Hiding Console Output

2006-08-02 Thread Larry Bates
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fr

Re: Hiding a column at the root of a plone site ...

2006-02-27 Thread bruno at modulix
Paul Ertz wrote: > Hello, > > We would like to hide the left column for the main/home page of our > plone sites dynamically using a tal: expression. Then please post on a Zope/Plone related mailing-list. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]

Re: Hiding input charachters

2006-01-12 Thread Paul Rubin
Robert Hilkene <[EMAIL PROTECTED]> writes: > Can any body help, I wanna to hide input characters from user (when he > enters password)? http://docs.python.org/lib/module-getpass.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Hiding

2005-08-01 Thread Jason Drew
Ah, good point, thanks. Must stop forgetting that "C:\file.txt" is bad. The whole open()/file() clairification is useful too. The Python docs for the file() constructor simply state that, "File objects ... can be created with the built-in constructor file() described in section 2.1, 'Built-in Func

Re: Hiding

2005-07-30 Thread Thorsten Kampe
* Jay (2005-07-30 08:51 +0100) > but also, wat if i needed to hide the loading of a file As others have pointed out: your question is pointless as opening a file doesn't load it or open it in your preferred application. You are confusing Operating System semantics with Python semantics. You're p

Re: Hiding

2005-07-30 Thread Jay
but also, wat if i needed to hide the loading of a file or the even hide the whole python window to run in background?? is there no module or function i can use -- http://mail.python.org/mailman/listinfo/python-list

Re: Hiding

2005-07-29 Thread Jay
thanks for the great info and urls, i have downloaded the pymedia module and playing around with it now. Thx alot -- http://mail.python.org/mailman/listinfo/python-list

Re: Hiding

2005-07-29 Thread Peter Hansen
Jason Drew wrote: > Also, I think > using file("C:\file.txt") is now preferred to open("C:\file.txt"). As others have noted, "open" is preferred as the method for opening files, while "file" is the _type_ involved, for testing or subclassing or what-have-you. But neither file("C:\file.txt") nor

Re: Hiding

2005-07-29 Thread Benji York
Steven Bethard wrote: > So open("C:\file.txt") is still fine I think it is more like it is recommended, not just OK. -- Benji York -- http://mail.python.org/mailman/listinfo/python-list

Re: Hiding

2005-07-29 Thread Steven Bethard
Jason Drew wrote: > Also, I think using file("C:\file.txt") is now preferred > to open("C:\file.txt"). Guido has said he wants to keep open() around as the way to open a file-like object, with the theory that in the future open might also support opening non-files (e.g. urls). So open("C:\file.

Re: Hiding

2005-07-29 Thread Larry Bates
I can say with some certainty that opening a "music file" with open won't launch media player. If rather, you do os.system('musicfile.mp3') it will launch whatever application is associated with the file type .mp3. You can either automate Windows Media player or use pymedia to play such files. H

Re: Hiding

2005-07-29 Thread Jason Drew
Well, using the open function in Python doesn't launch any application associated with the file (such as Media Player). It just makes the contents of the file accessible to your Python code. Also, I think using file("C:\file.txt") is now preferred to open("C:\file.txt"). To answer the specific que

Re: Hiding X windows

2005-06-11 Thread Jeff Epler
You may want to use a standalone program to do this. "xwit" has the ability to iconify a window which can be selected in a variety of ways. http://hpux.connect.org.uk/hppd/hpux/X11/Misc/xwit-1.0/man.html There's a direct Python interface to the X protocol in python-xlib. You could re-write t

Re: hiding a frame in tkinter

2005-03-31 Thread faramarz yari
thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: hiding a frame in tkinter

2005-03-29 Thread Fredrik Lundh
"faramarz yari" wrote: > def do_unpack(f): >f.pack_forget() > ... > b=Button(f3,text="hello",command=do_unpack(f3)) > > it does not work & the interpreter does not claim any error. it works perfectly fine, but it doesn't do what you want. do_unpack(f3) is a function call, so you're call

Re: hiding a frame in tkinter

2005-03-28 Thread faramarz yari
lots of thanks to the nice guys of python community, i do it ,and it works just as i want, but unfourtunatly a new problem arise. the problem is : when i use pack_forget , i just work, but suppose we want to call it in func or method, i choose to test it in a func: def do_unpack(f): f.pack_f

Re: hiding a frame in tkinter

2005-03-28 Thread Harlin Seritt
faramarz, Most likely, you'll need to replace the 'forgotten' frame with another one or other widget. You can immediately do *.pack() and it will replace the frame (assumming you haven't already packed something else there). Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: hiding a frame in tkinter

2005-03-28 Thread Fredrik Lundh
"faramarz yari" <[EMAIL PROTECTED]> wrote: > suppose we have a tk frame in witch there are lots of frame, > and we want to hide one of them(frames) > what should we do , and what will be the result in pack or grid goemetry? use pack_forget() or grid_forget() -- http://mail.python.org/mailm