Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54281

Re: Weird ttk behaviour

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'lines,': 0.07; 'tkinter': 0.07; 'python': 0.11; 'changes': 0.15; '2:28': 0.16; 'different,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reload': 0.16; 'reproduce': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'bit': 0.19; 'module': 0.19; 'trying': 0.19; 'seems': 0.21; '>>>': 0.22; 'error': 0.23; '(by': 0.24; 'replace': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'easier': 0.31; 'sep': 0.31; 'figure': 0.32; 'supposed': 0.32; 'linux': 0.33; 'noticed': 0.34; 'could': 0.34; 'problem': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'two': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'short': 0.38; 'bad': 0.39; 'help,': 0.39; 'to:addr:python.org': 0.39; 'problems.': 0.60; 'simply': 0.61; 'first': 0.61; 'times': 0.62; 'making': 0.63; "it'd": 0.84; 'try,': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MGhl+rpKTDRiqONXvwXEBn11/zL8eDXgZoIB0v9LoGA=; b=n6cDU5f0z+SHpyqwlN5eIYXKzZPylv+aLxFhGcZXNtnk3G/X3LR9T+XHbI2zIYF/IN WopGfUmQVEDbaTFPsLviPS3CV46/fMWXxPZu7X+bxhn1HZVZKPWgZp1bLYmi/L51E+xs 1euAst3GBmaiapv4qdZ+ubXRl4qbf/x72gKWGhVOKESFNSRUja0qen/Q6S8C09WHHyc6 n3HHnbE3o8ahIR8vGcAWYnaib/Um64WwJcHrWZI6CPdBRoblrsYyvHIzafateFJ7ns9k 5WPOe60a4uWCV9uH4KOqBJnWewoOakMKJWJt+98As3vn6Oiftodmkg4VrOTVdLYQMaH0 KejA==
MIME-Version 1.0
X-Received by 10.52.228.137 with SMTP id si9mr649298vdc.29.1379417575514; Tue, 17 Sep 2013 04:32:55 -0700 (PDT)
In-Reply-To <l19ebk$g94$1@dont-email.me>
References <l17bj9$1qs$1@dont-email.me> <mailman.39.1379370869.18130.python-list@python.org> <l19ebk$g94$1@dont-email.me>
Date Tue, 17 Sep 2013 21:32:55 +1000
Subject Re: Weird ttk behaviour
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.59.1379417584.18130.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379417584 news.xs4all.nl 15885 [2001:888:2000:d::a6]:39442
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54281

Show key headers only | View raw


On Tue, Sep 17, 2013 at 9:27 PM, Rotwang <sg552@hotmail.co.uk> wrote:
> On 16/09/2013 23:34, Chris Angelico wrote:
>>
>> On Tue, Sep 17, 2013 at 2:28 AM, Rotwang <sg552@hotmail.co.uk> wrote:
>>>
>>> If I then uncomment those two lines, reload the module and call f() again
>>> (by entering tkderp.reload(tkderp).f()), the function works like it was
>>> supposed to in the first place: two warnings, no exceptions. I can reload
>>> the module as many times as I like and f() will continue to work without
>>> any
>>> problems.
>>
>>
>> Reloading modules in Python is a bit messy. Are you able to tinker
>> with it and make it work in some way without reloading? It'd be easier
>> to figure out what's going on that way.
>
>
> I can't think what else I could try, do you have any suggestions? The
> problem first appeared in a much larger module (I was trying to replace some
> tkinter widgets that looked bad on Linux with their ttk equivalents); the
> only reason I noticed the thing about reloading is that I was trying to
> reproduce the error in a short module by repeatedly making changes and
> reloading.

If reloading and doing it again makes things different, what happens
if you simply trigger your code twice without reloading?

I've no idea if it'll help, it just seems like an attack vector on the
problem, so to speak.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Weird ttk behaviour Rotwang <sg552@hotmail.co.uk> - 2013-09-16 17:28 +0100
  Re: Weird ttk behaviour Serhiy Storchaka <storchaka@gmail.com> - 2013-09-16 21:43 +0300
    Re: Weird ttk behaviour Rotwang <sg552@hotmail.co.uk> - 2013-09-17 12:15 +0100
  Re: Weird ttk behaviour Chris Angelico <rosuav@gmail.com> - 2013-09-17 08:34 +1000
    Re: Weird ttk behaviour Rotwang <sg552@hotmail.co.uk> - 2013-09-17 12:27 +0100
      Re: Weird ttk behaviour Chris Angelico <rosuav@gmail.com> - 2013-09-17 21:32 +1000
        Re: Weird ttk behaviour Rotwang <sg552@hotmail.co.uk> - 2013-09-17 15:25 +0100
          Re: Weird ttk behaviour Chris Angelico <rosuav@gmail.com> - 2013-09-18 00:35 +1000
            Re: Weird ttk behaviour Rotwang <sg552@hotmail.co.uk> - 2013-09-17 17:11 +0100
              Re: Weird ttk behaviour Chris Angelico <rosuav@gmail.com> - 2013-09-18 02:20 +1000

csiph-web