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)
>>
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 =
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
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
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
>
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
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
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
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
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
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
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
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.
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
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.
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
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
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
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
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
"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
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
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
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
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
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
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('.')]
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
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
* 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
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
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
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
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
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.
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
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
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
thanks
--
http://mail.python.org/mailman/listinfo/python-list
"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
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
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
"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
43 matches
Mail list logo