Aivar Annamaa added the comment:
The guides could be implemented by tagging the indentation characters in the
Text widget with tags configured with suitable bgstipple
(https://www.tcl.tk/man/tcl/TkCmd/text.html#M45) bitmaps.
I had some success with this in Thonny IDE, but abandoned the plan
Aivar Annamaa added the comment:
You may want to use zenity in a subprocess instead of this dialog in Linux, but
this has its own problems (appearing behind other windows occasionally)
--
nosy: +aivarannamaa
___
Python tracker
<ht
Aivar Annamaa added the comment:
Do I understand properly, that the macOS build hasn't been updated yet?
It would be really great if Python 3.10.1 for macOS would come with Tcl/Tk
8.6.12, as it is supposed to fix a nasty crash with Spanish key
Change by Aivar Annamaa :
--
nosy: +aivarannamaa
___
Python tracker
<https://bugs.python.org/issue45732>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aivar Annamaa added the comment:
Sorry, duplicate of #45732
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Change by Aivar Annamaa :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue45817>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Aivar Annamaa :
New version contains several bugfixes:
https://github.com/tcltk/tk/blob/8baf7d337ca0aab7fafb0e670927ab2c0200e80a/changes#L7869
--
assignee: terry.reedy
components: IDLE, Tkinter, Windows, macOS
messages: 406409
nosy: aivarannamaa, ned.deily
Aivar Annamaa added the comment:
I was not able to find out why one of my Windows box failed to update the
certificate store, but I was able to work around this by manually installing
https://letsencrypt.org/certs/lets-encrypt-r3.der
It looks like this is actually a Windows problem, so I
Aivar Annamaa added the comment:
I can list the root certs with certmgr, but I'm not sure which piece to
investigate further.
Even if there is problem with installed certs, it's interesting, why doesn't it
bother the browsers and requests? Maybe this is opportunity to
New submission from Aivar Annamaa :
In one of my Windows 10 computers I'm not able to urlopen sites which use R3
certificates. The same is reported by several of the users of my software.
Following is taken from a session in the fresh IDLE 3.10 in up-to date Windows
10:
Python 3.10.0
Change by Aivar Annamaa :
--
title: Support Command-click on window title on macOS -> Make IDLE support
Command-click on window title on macOS
___
Python tracker
<https://bugs.python.org/issu
Aivar Annamaa added the comment:
In short:
window.wm_attributes("-titlepath", stringContainingTheAbsolutePathOfTheDocument)
Passing empty string as the second argument turned the feature off.
--
___
Python tracker
<https://bu
New submission from Aivar Annamaa :
Many macOS apps show location info about current document on command-clicking
on window title.
I just found out how to do it in Tkinter, so I wanted to share it in case
someone wants to add it for IDLE:
https://sourceforge.net/p/tcl/mailman/tcl-mac/thread
Change by Aivar Annamaa :
--
nosy: Aivar.Annamaa
priority: normal
severity: normal
status: open
title: Support
___
Python tracker
<https://bugs.python.org/issue44
Aivar Annamaa added the comment:
According to Tk people, the regression in performance was unavoidable and the
solution is to avoid relying on update in a loop:
https://core.tcl-lang.org/tk/tktview/f642d7c0f4
--
nosy: +Aivar.Annamaa
___
Python
Change by Aivar Annamaa :
--
nosy: +Aivar.Annamaa
___
Python tracker
<https://bugs.python.org/issue42068>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aivar Annamaa added the comment:
A related discussion is here:
https://core.tcl-lang.org/tk/tktview/dcb35fbd78a0bc31ad409cf717f16a472ca3f627
--
nosy: +Aivar.Annamaa
___
Python tracker
<https://bugs.python.org/issue41
Aivar Annamaa added the comment:
According to the comments under https://github.com/python/cpython/pull/18982
there is no point in creating a PR, so I'll just share my experiences.
I was able to build current master with Tcl/Tk 8.6.10 both on Windows 10
(64-bit) and on macOS Catalina.
Change by Aivar Annamaa :
--
title: Consider upgrading Tkinter to Tk 8.6.10 -> Consider building Tkinter
with Tk 8.6.10
___
Python tracker
<https://bugs.python.org/issu
Change by Aivar Annamaa :
--
assignee: -> terry.reedy
components: +IDLE
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue39107>
___
___
Py
New submission from Aivar Annamaa :
It includes several Mac-related enhancements
https://sourceforge.net/projects/tcl/files/Tcl/8.6.10/tcltk-release-notes-8.6.10.txt/view
--
components: Tkinter
messages: 358702
nosy: Aivar.Annamaa
priority: normal
severity: normal
status: open
title
Aivar Annamaa added the comment:
>>> '\N{PERSONAL COMPUTER}'
freezes IDLE 3.7.6 (64-bit, downloaded from python.org) on macOS 10.15
Can it be because Tk 8.6.8 is still used there?
--
nosy: +Aivar.Annamaa
___
Pyt
Aivar Annamaa added the comment:
> to conditionallly bind '' to a function that returns 'break'
I tried capturing all events. The handler was called for Cmd press, but
the crash occurred before the handler was c
Aivar Annamaa added the comment:
I created the ticket:
https://core.tcl-lang.org/tk/tktview/5849df7852c48cb763b11a11d848a68482b0f828
--
nosy: +Aivar.Annamaa
___
Python tracker
<https://bugs.python.org/issue34
Aivar Annamaa added the comment:
> in my opinion the col_offsets of the two nodes should be 1 and 3,
> respectively (the positions of the operators)
This would not match the documentation:
> one can get the source segment of a one-line expression node using
> source_line[nod
Change by Aivar Annamaa :
--
nosy: +Aivar.Annamaa
___
Python tracker
<https://bugs.python.org/issue35101>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aivar Annamaa added the comment:
I strongly support this feature, because my IDE (https://thonny.org) needs to
highlight AST nodes in the source code.
There would be many interested parties if you count the stars of this project:
https://github.com/gristlabs/asttokens
--
nosy
Aivar Annamaa added the comment:
Can it be caused by
https://github.com/python/cpython/commit/adf493227f1efd5d6b34f46b854142bf3b5a411c
?
--
___
Python tracker
<https://bugs.python.org/issue34
Aivar Annamaa added the comment:
I got the segfault with Tk 8.6, provided with python.org installer.
--
___
Python tracker
<https://bugs.python.org/issue34
Aivar Annamaa added the comment:
Looks like the workaround is to provide explicit `parent` named argument to the
dialog call.
--
___
Python tracker
<https://bugs.python.org/issue34
Aivar Annamaa added the comment:
Here is a simple application that also exposes this problem. Click at the
button and press Escape when dialog appears.
import tkinter as tk
import tkinter.filedialog as fd
root = tk.Tk()
def dostuff():
fd.askopenfile()
bt = tk.Button(root, text
New submission from Aivar Annamaa :
After switching from Python 3.7.0 to 3.7.1rc1 (macOS, 64-bit only downloaded
from python.org), my rather big Tkinter application started to segfault
whenever I close a system dialog (eg. the one created by askopenfilename or
showerror) by keypress (eg
Change by Aivar Annamaa :
--
title: inspect.getsource() returns incorrect source lines ->
inspect.getsource() returns incorrect source lines at the module level
versions: +Python 3.6, Python 3.7
___
Python tracker
<https://bugs.pyth
Change by Aivar Annamaa :
--
nosy: +Aivar.Annamaa
___
Python tracker
<https://bugs.python.org/issue6700>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aivar Annamaa added the comment:
Here is the PR: https://github.com/python/cpython/pull/3469
(It's my first, so I don't know if I should to also update NEWS file or add
"skip news" label. I signed the CLA, so I hope th
Aivar Annamaa added the comment:
(Sorry, I didn't mean to challenge the authority of a core developer. I simply
didn't notice that adding a comment reopens the issue. I hope this time I
selected correct parameters and this doesn't happen again)
I'm trying to rephrase my co
Aivar Annamaa added the comment:
But ellipsis is a distinct token, not a sequence of three period tokens.
Also, I can't see how we could conceptually treat ellipsis as a delimiter or
operator -- it's a literal.
I still think either documentation or implementation needs to be
Aivar Annamaa added the comment:
But it looks like Ellipsis is neither operator nor delimiter:
https://docs.python.org/3/reference/lexical_analysis.html#operators
--
___
Python tracker
<https://bugs.python.org/issue31
New submission from Aivar Annamaa:
Type code for ellipsis token doesn't match with the constant token.ELLIPSIS:
---
import io
import token
import tokenize
source = "..."
tokens = list(tokenize.tokenize(io.BytesIO(source.encode('utf-8
Aivar Annamaa added the comment:
In case this issue becomes active again, I'm listing my design implemented in
Thonny IDE (http://thonny.org) -- see the attached png.
If you decide same design is suitable for IDLE, then I'm happy to create a
version of the dialog without Thonny de
Aivar Annamaa added the comment:
Looks like I misinderstood inspect.findsource. I thought it is supposed to give
only the code for argument object (eg. only def code when given a function),
but looks like it is giving the whole file.
Unfortunately inspect.findsource is not documented in
Changes by Aivar Annamaa :
--
components: +Interpreter Core
___
Python tracker
<http://bugs.python.org/issue29359>
___
___
Python-bugs-list mailing list
Unsub
New submission from Aivar Annamaa:
How quickly will you notice the bug here:
for sequence in ["Command",
"MagicCommand",
"Open",
"Save",
"SaveAs",
Changes by Aivar Annamaa :
--
components: +Interpreter Core
type: -> behavior
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issu
New submission from Aivar Annamaa:
Following program shows that frame.f_code.co_firstlineno ignores first line if
it is a comment (or empty line), but inspect.getsource(frame.f_code) returns
also the first line:
# first line
import inspect
frame = inspect.currentframe()
print
Changes by Aivar Annamaa :
--
nosy: -Aivar.Annamaa
___
Python tracker
<http://bugs.python.org/issue23551>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aivar Annamaa added the comment:
install_name_tool can specify relative paths (see eg.
https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath). Therefore
you don't need it in users' systems.
I've used it successfully for bundling Python 3.5 and Tk 8.6 with my
New submission from Aivar Annamaa:
Currently Mac installer can create only Tk 8.5 compatible Tkinter, even if
Tcl/Tk 8.6 is installed.
Unofficial distributions doesn't seem to have problems with Tk 8.6 on Mac. I
think official installer should be upgraded as well.
Best option for users
Aivar Annamaa added the comment:
In case "Open system shell" happens someday, here's my take on this:
https://bitbucket.org/plas/thonny/src/master/thonny/plugins/system_shell/
It's a plugin for my beginners' IDE Thonny (http://thonny.cs.ut.ee). It creates
a men
Aivar Annamaa added the comment:
Another (more general) alternative: provide a menu item "Open system shell for
this Python version", which opens a terminal window with correct Scripts or bin
folder in path.
--
___
Python trac
Aivar Annamaa added the comment:
I believe for beginners it's not difficult to enter "pip install package". The
trouble is with opening the command prompt, knowing about PATH and different
Python versions etc.
Terry mentioned GUI development to be more expensive. What ab
Aivar Annamaa added the comment:
ast.Attribute node actually means "the atribute of something", ie. the node
includes this "something" as subnode.
> How can I get the position of 'bar' in 'foo.bar'?
I don't know a good way for this, because b
Aivar Annamaa added the comment:
Radek, the source corresponding to Attribute node does start at col 0 in your
example
--
___
Python tracker
<http://bugs.python.org/issue21
Aivar Annamaa added the comment:
Yes, I also need col_offset to work as advertised because of a real world use
case: Thonny (http://thonny.cs.ut.ee/) is a visual Python debugger which
highlights the (sub)expression about to be evaluated
Aivar Annamaa added the comment:
Clarification: In general trackpad scrolling does work on my Lenovo (eg. in
Windows Notepad), it just doesn't work in tkinter programs (including IDLE)
--
___
Python tracker
<http://bugs.python.org/is
New submission from Aivar Annamaa:
Here's a simple tkinter program, where text can be scrolled by mouse wheel, and
by trackpads of some laptops (Macbook Pro, Dell Latitude E5430), but not by
trackpads of some other laptops (Lenovo T420).
from tkinter import Tk
from tkinter i
New submission from Aivar Annamaa:
Currently lineno and col_offset attributes in AST nodes have confusing roles.
According to documentation they indicate the starting position of node's source
text but according to recent developments (#16795) they seem to indicate a
position most suitab
Changes by Aivar Annamaa :
--
components: +Tkinter
type: -> crash
versions: +Python 3.4
___
Python tracker
<http://bugs.python.org/issue22384>
___
___
Python-
New submission from Aivar Annamaa:
Seems that the statement 'sys.stderr.write("Exception in Tkinter callback\n")'
in Tk.report_callback_exception fails when the program is run with pythonw.exe,
and brings down the whole process.
A simple sample is attached.
--
fil
Aivar Annamaa added the comment:
Just found out that ast.Attribute in Python 3.4 has similar problem
--
___
Python tracker
<http://bugs.python.org/issue21
Aivar Annamaa added the comment:
Regarding #16795, the documentation says "The lineno is the line number of
source text and the col_offset is the UTF-8 byte offset of the first token that
generated the node", not that lineno and col_offset indicate a suitable
position to mention in
Changes by Aivar Annamaa :
--
nosy: +Aivar.Annamaa
___
Python tracker
<http://bugs.python.org/issue16806>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aivar Annamaa added the comment:
... also, lineno is wrong for both Call and call's func, when func and
arguments are on different lines:
import ast
tree = ast.parse("(sin\n(0.5))")
first_stmt = tree.body[0]
call = first_stmt.value
print("col_offset of call expression:"
New submission from Aivar Annamaa:
Following program gives correct result in Python versions older than 3.4, but
incorrect result in 3.4:
--
import ast
tree = ast.parse("sin(0.5)")
first_stmt = tree.body[0]
call = first_stmt.value
print("col_offset of
Aivar Annamaa added the comment:
> ast [gives positions as] offsets of UTF-8 bytes
Oops, I'm sorry, I realized only now that this is the explanation of this
behaviour. So, after all it seems to be a feature (albeit very weird), not a
bug.
--
resolution: -&
Aivar Annamaa added the comment:
I should explain more -- the string containing the program is read in
correctly, the trouble occurs during parse.
--
___
Python tracker
<http://bugs.python.org/issue19
Aivar Annamaa added the comment:
Serhiy, it's similar in that it has to do with encodings, but I think it's
caused by different bug.
I suspect it has something to do with the fact that tokenizer gives positions
as offsets of characters and ast as offsets of U
New submission from Aivar Annamaa:
ast.parse gives col_offset=4 for Name x when given program "a + x" vs.
col_offset=5 for x when Name a is replaced with a-umlaut (I can't write that
character here, because it seems that the issue system doesn't handle non-ascii
characte
Aivar Annamaa added the comment:
Seems this issue is a duplicate of http://bugs.python.org/issue16806
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Aivar Annamaa:
When parsing following program:
1+2-3
ast.parse gives col_offset=3 to outermost BinOp (as shown by the attached test
script). Correct col_offset would be 0 for both BinOp-s
--
components: Interpreter Core
files: binop_bug.py
messages: 192394
nosy
Changes by Aivar Annamaa :
--
title: ast.parse produces -1 as col_offset for triple-quoted strings ->
ast.parse produces wrong lineno and col_offset for triple-quoted strings
___
Python tracker
<http://bugs.python.org/issu
Aivar Annamaa added the comment:
Didn't notice before: the lineno attribute is also wrong
--
___
Python tracker
<http://bugs.python.org/issue18370>
___
___
New submission from Aivar Annamaa:
AST nodes for triple-quoted strings have -1 in col_offset field, as presented
in the attached file.
--
components: Interpreter Core
files: col_offset_bug.py
messages: 192355
nosy: Aivar.Annamaa
priority: normal
severity: normal
status: open
title
New submission from Aivar Annamaa :
When IDLE opens in Windows 7, its bottom edge will be hidden behind taskbar. It
should position itself so that it's fully visible.
--
components: IDLE
messages: 146354
nosy: Aivar.Annamaa
priority: normal
severity: normal
status: open
title:
74 matches
Mail list logo