On 22/08/15 23:32, Alan Gauld wrote:
On 22/08/15 11:43, Laura Creighton wrote:
How can I filter out these hidden directories?
Help(tkFileDialog) doesn't help me as it just shows **options, but
doesn't show what these options might be.
tix (tkinter extensions) https://wiki.python.org/moin/Tix
On 23/08/15 00:42, Laura Creighton wrote:
In a message of Sat, 22 Aug 2015 14:32:56 +0100, Alan Gauld writes:
But maybe some questions on a Tix (or Tk) forum might
get more help? Once you know how to do it in native
Tcl/Tk/Tix you can usually figure out how to do it
in Python.
--
Alan G
I ask
Anthony Papillion schrieb am 23.08.2015 um 01:16:
> from lxml import html
> import requests
>
> page = requests.get("http://joplin.craigslist.org/search/w4m";)
> tree = html.fromstring(page.text)
While requests has its merits, this can be simplified to
tree = html.parse("http://joplin.craigs
In a message of Sun, 23 Aug 2015 13:09:41 +1000, Chris Roy-Smith writes:
>On 22/08/15 23:32, Alan Gauld wrote:
>> On 22/08/15 11:43, Laura Creighton wrote:
>>
How can I filter out these hidden directories?
Help(tkFileDialog) doesn't help me as it just shows **options, but
doesn't sho
wxPython has a SHOWHIDDEN checkbox for turning exactly this on and off,
but if you wanted to exclude all .pyc files while leaving the rest
alone, I don't see a way to do that, either, right now.
QT has a ton of options including showing hidden files.
The common problem we seem to be up against is
On 23/08/15 18:13, Laura Creighton wrote:
In a message of Sun, 23 Aug 2015 13:09:41 +1000, Chris Roy-Smith writes:
On 22/08/15 23:32, Alan Gauld wrote:
On 22/08/15 11:43, Laura Creighton wrote:
How can I filter out these hidden directories?
Help(tkFileDialog) doesn't help me as it just shows
Hello,
Here is my final script. It is doing what I wanted it to. I wanted to just
share it as a final product and thank you all for your feedback on the various
previous revisions.
import socket
ListOfIPAddresses = []
with open('top500ips.csv', 'r') as f:
for line in f:
line = lin
oooh. Seems that there is an undocumented feature we can use!
Laura
--- Forwarded Message
Return-Path:
Date: Sun, 23 Aug 2015 12:40:02 +0200
From: Michael Lange
To: tkinter-disc...@python.org
Message-Id: <20150823124002.7391f37e21f9b5cfaa917...@web.de>
In-Reply-To: <20150822210424.321b826
More goodies from Michael Lange
--- Forwarded Message
From: Michael Lange
To: tkinter-disc...@python.org
if you only need to hide hidden files, please see my other post. If you
need a more versatile file dialog widget, you might want to consider
wrapping an existing tcl widget for tkinter, t
On 23/08/15 09:31, Chris Roy-Smith wrote:
There is a FileSelectDialog in Tix that has a dircmd option
according to the Tix documentation.
There is also allegedly a 'hidden' check-box subwidget
that controls whether hidden files are shown. Again I
couldn't find how to access this.
This combo
On 23/08/15 14:16, Nym City wrote:
Hello,
Here is my final script. It is doing what I wanted it to. I wanted to
just share it as a final product and thank you all for your feedback
on the various previous revisions.
import socket
ListOfIPAddresses = []
with open('top500ips.csv', 'r') as f:
On 23/08/15 15:00, Laura Creighton wrote:
You might also want to try the Tix.ExFileSelectDialog, it is rather
dated, but actually has a switch to toggle hidden files on/off and
wildcard filtering capabilities. Unfortunately here with debian jessie I
can only test it with Tcl, with python for som
In a message of Sun, 23 Aug 2015 15:39:07 +0100, Alan Gauld writes:
>On 23/08/15 15:00, Laura Creighton wrote:
>
>> You might also want to try the Tix.ExFileSelectDialog, it is rather
>> dated, but actually has a switch to toggle hidden files on/off and
>> wildcard filtering capabilities. Unfortuna
But, aha, it works for Python3.5
I wrote this minimal program, to see what needed doing to solve the OP's
problem, and, surprise, it solves it right out of the box.
# -*- coding: utf-8 -*-
from tkinter import *
import tkinter.tix as tix
root = tix.Tk()
def print_selected(args):
print('sel
On Sat, Aug 22, 2015 at 3:18 AM, Peter Otten <__pete...@web.de> wrote:
> boB Stepp wrote:
>
>> In the cold light of morning, I see that in this invocation, the path
>> is wrong. But even if I correct it, I get the same results:
>>
>> e:\Projects\mcm>py -m unittest ./test/db/test_manager.py
> [...]
In a message of Sun, 23 Aug 2015 16:45:11 +0200, Laura Creighton writes:
>segfaults debian sid, too.
>
>Laura
Updating to Python 2.7.10 (default, Jul 1 2015, 10:54:53) and
installing the tix-dev debian package, instead of just tix ... and
I am not sure which of these fixed the problem, because se
On 23/08/15 16:11, Laura Creighton wrote:
But, aha, it works for Python3.5
I only trued it on 2.7.
I'll have a go on 3.4...
I wrote this minimal program, to see what needed doing to solve the OP's
problem, and, surprise, it solves it right out of the box.
from tkinter import *
import tkin
On Sun, Aug 23, 2015 at 10:42:25AM -0500, boB Stepp wrote:
[...]
> If I try this or begin in E:\Projects\mcm and type py
> ./test/db/test_manager.py I get
>
> E:\Projects\mcm>py ./test/db/test_manager.py
> Traceback (most recent call last):
> File "./test/db/test_manager.py", line 16, in
>
boB Stepp wrote:
> On Sat, Aug 22, 2015 at 3:18 AM, Peter Otten <__pete...@web.de> wrote:
>> boB Stepp wrote:
>>
>>> In the cold light of morning, I see that in this invocation, the path
>>> is wrong. But even if I correct it, I get the same results:
>>>
>>> e:\Projects\mcm>py -m unittest ./test/
On Sun, Aug 23, 2015 at 06:47:49PM +0200, Peter Otten wrote:
> > ... I was not in the directory, E:\Projects\mcm. It is my
> > understanding that if I start in a particular directory when I invoke
> > Python, then it looks in that location first in PYTHONPATH.
>
> No, it looks in the location
On Sun, Aug 23, 2015 at 11:47 AM, Peter Otten <__pete...@web.de> wrote:
> boB Stepp wrote:
>> And am I misreading the docs at
>> https://docs.python.org/3/library/unittest.html#test-discovery:
>>
>>
> -
On Sun, Aug 23, 2015 at 11:47 AM, Peter Otten <__pete...@web.de> wrote:
> boB Stepp wrote:
>
>> On Sat, Aug 22, 2015 at 3:18 AM, Peter Otten <__pete...@web.de> wrote:
>>> boB Stepp wrote:
>> ... I was not in the directory, E:\Projects\mcm. It is my
>> understanding that if I start in a particular
I am beginner in pythonI see the use of lambda has been for really simple ones
as in the numerous examples over the net.Why cant we use lambda in another one
like g = lambda x: (lambda y: y + 1) + 1when I am able to do that in two lines
h = lambda x: x + 1>>> h(12)13y = lambda x: h(x) + 1>>> y(1)
23 matches
Mail list logo