[issue12558] Locale-dependent crash for float width argument to Tkinter widget constructor

2011-07-14 Thread Guilherme Polo

Guilherme Polo  added the comment:

Why is this a bug ? You passed something that is not supposed to work with tk 
and tk said so.

--

___
Python tracker 
<http://bugs.python.org/issue12558>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue539907] Tkinter lock conflicts extension widgets

2010-08-17 Thread Guilherme Polo

Guilherme Polo  added the comment:

> @Guilherme I'm guessing that you're still interested in this, yes?

I don't see the point in closing an issue simple because no one
responded. I think the question to be asked is more towards "is it
solved?" than "are you interested on it?". If the issue is invalid
considering all the changes that happened since the initial message
then I'm in favor in closing it.

--

___
Python tracker 
<http://bugs.python.org/issue539907>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1730136] tkFont.__eq__ gives type error

2010-09-20 Thread Guilherme Polo

Guilherme Polo  added the comment:

Closing this again in favor of issue9899.

--
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue1730136>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-09-25 Thread Guilherme Polo

Guilherme Polo  added the comment:

Hi there,

I believe I've fixed most of these errors. But I couldn't replicate the last 
error on the first message, so I guessed what could be the problem.

Could you try the patch and see how it works for you ?

(Thanks for the nosy addition, I rarely check for bugs as you may know).

--
keywords: +patch
Added file: http://bugs.python.org/file19019/issue8445.diff

___
Python tracker 
<http://bugs.python.org/issue8445>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-09-26 Thread Guilherme Polo

Guilherme Polo  added the comment:

> We are down to 1 error but thats a new errror;
>
>
> test test_ttk_guionly failed -- Traceback (most recent call last):
>  File 
> "/Users/cartman/Sources/py3k/Lib/tkinter/test/test_ttk/test_widgets.py", line 
> 28, in test_identify
>    self.widget.winfo_height() / 2), "label")
>  File "/Users/cartman/Sources/py3k/Lib/tkinter/ttk.py", line 568, in identify
>    return self.tk.call(self._w, "identify", x, y)
> _tkinter.TclError: expected integer but got "30.5"
>

Just convert to integer the results from winfo and you should be fine.

--

___
Python tracker 
<http://bugs.python.org/issue8445>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-09-26 Thread Guilherme Polo

Guilherme Polo  added the comment:

You should convert the whole expressions actually, but that is because the 
patch wasn't done for py3k.

--

___
Python tracker 
<http://bugs.python.org/issue8445>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6549] ttk.Style not translating some Tcl options

2011-02-22 Thread Guilherme Polo

Guilherme Polo  added the comment:

> I have been working with the ttk module (Windows XP, Python 3.1) and have 
> encountered some specific issues with ttk.Style() not fully propagating the 
> style into the widget.  In my particular case, there seem to be issues with 
> setting style in TCombobox and TEntry.  The biggest issue is that you can't 
> change the style of the ttk.Combobox popdown.  Style can be set in the top 
> window, but not using all methods, but nothing works for the popdown.

Is this related to the initial report ?

Setting styles may be problematic, and I don't think there is
something fully describing all the things in ttk.Style (Tcl, Python
and other languages) yet. There is a .tcl script that performs a lot
of styling here:
http://tktable.git.sourceforge.net/git/gitweb.cgi?p=tktable/tile-qt;a=tree;f=library;hb=HEAD

It might help you, but I can't confirm. Good luck, but continue this
conversation on a forum if it is not related to the initial report.

--

___
Python tracker 
<http://bugs.python.org/issue6549>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11387] Tkinter, callback functions

2011-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

I have a different problem here on Mac, but I can manage to reproduce
your issue if I apply the following patch:

Index: Lib/tkinter/__init__.py
===
--- Lib/tkinter/__init__.py (revision 88757)
+++ Lib/tkinter/__init__.py (working copy)
@@ -920,9 +920,9 @@
 self.tk.call('bindtags', self._w, tagList)
 def _bind(self, what, sequence, func, add, needcleanup=1):
 """Internal function."""
-if isinstance(func, str):
-self.tk.call(what + (sequence, func))
-elif func:
+#if isinstance(func, str):
+#self.tk.call(what + (sequence, func))
+if func:
 funcid = self._register(func, self._substitute,
 needcleanup)
 cmd = ('%sif {"[%s %s]" == "break"} break\n'

This should help someone else to produce a patch for this problem you
reported. It is "interesting" that this same patch fixes the problem I
have here (I get a SIGSEGV if I click the cancel button side the
askdirectory dialog).

--

___
Python tracker 
<http://bugs.python.org/issue11387>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

Does the attached patch work for you ?

--
keywords: +patch
Added file: http://bugs.python.org/file21017/patch11290.diff

___
Python tracker 
<http://bugs.python.org/issue11290>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4350] Remove dead code from Tkinter.py

2011-03-06 Thread Guilherme Polo

Guilherme Polo  added the comment:

If we consider the meaning of "dead code" as that used in compilers, then I 
meant "out of date" code.

If you want to add support for tk::ButtonEnter then I believe you should open a 
new issue and raise your points there. Anyway, have you read 
http://www.mail-archive.com/python-list@python.org/msg210494.html ? Does it 
relate to your use case ?

--

___
Python tracker 
<http://bugs.python.org/issue4350>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-12 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I've talked with Brett and we agreed on a plan slightly different from
the one described in PEP 3108, which seems to be better for tkinter.

The first step would be creating a tkinter package and then moving each
file in lib-tk to this new directory, correcting imports and the case
and renaming Tkinter.py to __init__.py so the directory is marked as a
package.

After this step I can proceed with more patches, including stub modules,
tests in test_py3kwarn and continue with the rest of the plan.

I'm attaching two files I've used to do this first step. One is a .py
file, which will do the proper renamings and then there is a patch which
should be applied to fix imports inside the tkinter package.

Added file: http://bugs.python.org/file10309/tkinter_package.py

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-12 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


--
keywords: +patch
Added file: http://bugs.python.org/file10310/tkinter_imports.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2843] New methods for existing Tkinter widgets

2008-05-12 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Attached patch adds the following new methods:

Misc: grid_anchor
Menu: xposition
Text: count, peer_create, peer_names, replace
Wm: wm_iconphoto, wm_manage, wm_forget

These are supported by Tk 8.5 and newer.

--
components: Tkinter
files: tk8.5_newmeths.py
messages: 66768
nosy: gpolo
severity: normal
status: open
title: New methods for existing Tkinter widgets
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10314/tk8.5_newmeths.py

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2843>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue429031] Text widget, bindtags and Tabs

2008-05-15 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

The "tab" key is bound globally to move the focus to the next widget,
but that is not what you would want for a text widget. So, text widgets
breaks the natural flow of tab key events to achieve this, and, when you
specify bindings like that (in your "not ok" example), it stops your
widget-level binding from firing.

I don't see anything to be fixed here, so I'm closing it.

--
nosy: +gpolo
resolution:  -> invalid
status: open -> closed


Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue429031>

___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2884] Create the tkinter package

2008-05-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I have started doing this at issue 2839, but I need help from someone
with available time and commit privs

--
nosy: +gpolo

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2884>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

New patch, this one does the following:

* Fix tkinter imports in idlelib, pydoc and Canvas (deprecated)
* Creates stub modules for all old Tkinter modules, except tkFileDialog
and tkSimpleDialog
* Updates test_py3kwarn for all these renames

What is missing now:

* Merging tkSimpleDialog into tkinter.simpledialog and tkFileDialog into
tkinter.filedialog, I believe this should be done using svn merge and
then correct the result a bit.
* Update docs

Added file: http://bugs.python.org/file10346/tkinter_step2.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Patching for updating the docs added.

I've also added a script that should be executed after the patch is
applied, it will rename scrolledtext.rst to tkinter.scrolledtext.rst;
tix.rst to tkinter.rst and turtle.rst to tkinter.turtle.rst.

Added file: http://bugs.python.org/file10348/tkinter_doc_updates.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-16 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10349/rename_tkdocs.py

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

After merging all these changes in py3k, lib-tk should be removed from
sys.path there. Patch added for this.

Note that the iss script at PC/VS7.1 should be regenerated

Added file: http://bugs.python.org/file10350/remove_libtk_path.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1362475] Text.edit_modified() doesn't work

2008-05-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This bug still exists, I'm attaching a patch against current python-trunk.
This patch is based on the fact that documentation tk 8.4 (version which
edit command was added) and tk 8.5 says only edit_modified is supposed
to return something, which is either 0 or 1, so there was no reason to
use _gettints on that tk.call, and returning an empty tuple is against
the expected value, 0.

--
keywords: +patch
nosy: +gpolo
Added file: http://bugs.python.org/file10352/edit_modified.diff

_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1362475>
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-17 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This new patch handles the merging of tkSimpleDialog into
tkinter.simpledialog and tkFileDialog into
tkinter.filedialog.

After doing it, the old files may be removed from lib-tk:
svn del Lib/lib-tk/tkSimpleDialog.py
svn del Lib/lib-tk/tkFileDialog.py

I will do the stub modules for these modules after the commit then, thanks.

Added file: http://bugs.python.org/file10354/tkinter_modmerge.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1362475] Text.edit_modified() doesn't work

2008-05-17 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Closed as this is yet another duplicate.

--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Text.edit_modified() fails

_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1362475>
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue961805] Text.edit_modified() fails

2008-05-17 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

>From issue 1362475:

This bug still exists, I'm attaching a patch against current python-trunk.
This patch is based on the fact that documentation tk 8.4 (version which
edit command was added) and tk 8.5 says only edit_modified is supposed
to return something, which is either 0 or 1, so there was no reason to
use _gettints on that tk.call, and returning an empty tuple is against
the expected value, 0.

--- cut ---

This message and patch is almost a duplicate of Matthias, just updating
from the just closed, and duplicated, issue 1362475

--
keywords: +patch
nosy: +gpolo
Added file: http://bugs.python.org/file10355/edit_modified.diff


Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue961805>

___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2839] Moving lib-tk to tkinter package

2008-05-17 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Patch added for handling the merging of tkSimpleDialog into
tkinter.simpledialog and tkFileDialog into tkinter.filedialog, specific
for py3k.

Added file: http://bugs.python.org/file10358/tkinter_modmerge_py3k.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2839>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2008-05-18 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10296/tkinter_package_and_fixes_2.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2775>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2906] tkinter, assorted fixes

2008-05-18 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

This patch adds support for Tk options that could be passed as a list or
tuple, for example. I didn't investigate if there are any of these in tk
8.4, but tk 8.5 has this (the padding option for Ttk Label, for example).
Note that this should, if possible, be backported to python 2.5 at
least, since it segfaults here when I pass a list as an option value.

It also aligns some docstrings; documents the support for the 'in_'
option for grid, place and pack, actually all options may end with an
"_", but it is good to document 'in_' specifically because the option
'in' can't be passed "naturally". Lastly it removes the duplicate code
in class Place that checks for the 'in_' option.

--
components: Tkinter
files: fixes_tkinter.diff
keywords: patch, patch
messages: 67029
nosy: gpolo
severity: normal
status: open
title: tkinter, assorted fixes
versions: Python 3.0
Added file: http://bugs.python.org/file10362/fixes_tkinter.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2906>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2908] fix_imports new entries for tkinter rename

2008-05-18 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Added entries on fix_imports to deal with the tkinter renaming.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
files: tkinter_imports_fix.diff
keywords: patch
messages: 67036
nosy: collinwinter, gpolo
severity: normal
status: open
title: fix_imports new entries for tkinter rename
Added file: http://bugs.python.org/file10367/tkinter_imports_fix.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2908>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2908] fix_imports new entries for tkinter rename

2008-05-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Hi Georg, sorry but I duplicated the FileDialog entry in tkFileDialog
and forgot to update the correct names for tkFileDialog, here is a patch
to apply over the previous one. 
I took the time to review the other entries too, just in case I did this
somewhere else, but they are all fine.

--
resolution: accepted -> 
status: closed -> open
Added file: http://bugs.python.org/file10369/fix_tkfiledialog_imports.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2908>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1447222] tkinter Dialog fails when more than four buttons are used

2008-05-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I just tried it here and it still happens, it also happens for the 11th
button and that is it (5th and 11th). I tried it with tk 8.4 and tk 8.5,
python-trunk, python 2.5.2. 

I'm investigating this.

For some reason a pixel object is being returned inside a tuple.
_tkinter detects a ListType object, then creates a tuple with one
object, which is a pixel object and it has the value you would expect, 4
or 10.

--
nosy: +gpolo

_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1447222>
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue615772] Tkinter.Misc has no __contains__ method

2008-05-19 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Can you tell me why anyone would do `option in widget` ? I don't see the
benefit of making tkinter widgets more "dict-like". Do you have some
good use cases ?

--
nosy: +gpolo


Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue615772>

___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1447222] tkinter Dialog fails when more than four buttons are used

2008-05-19 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

The workaround is actually setting wantobjects to 0, which I doubt
everyone will like. 
I've talked with a tcl developer and some interesting points were raised
from the talk:

1) Looking at typePtr in _tkinter isn't actually good (this is used to
convert the tcl object to a proper python object), because it may not
work always, like in this case. But the person also mentioned he didnt't
know of any good solutions to that problem.
2) Cause of the problem -- most likely: something else in the code that
creates the message box is using the literal string "5" as a
-borderwidth or a -padding or as something else that's passed to a
widget. And the compiler uses the same Tcl_Obj * for that "5" and the
"5" that you pass to [tk_dialog].

Apparently trying to fix this in Python would case some (major?) changes
in _tkinter.

_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1447222>
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2956] 2to3 should have a way to disable some fixers

2008-05-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Once I wanted this too. I'm attaching two patches but I prefer the
former which allows the skipped fixer(s) to be logged.

--
keywords: +patch
nosy: +gpolo
Added file: http://bugs.python.org/file10425/fixer_skip.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2956>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2956] 2to3 should have a way to disable some fixers

2008-05-24 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10426/fixer_skip2.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2956>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2806] Py30a5: Tk Menu Alt-f behaves differently Linux vs Windows

2008-05-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I just got an information here.. The new way is the recommended way
since Tk 8.0

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2806>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2950] silly readline module problem

2008-05-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

You need to install the development package of readline in order to have
the readline module compiled. And this is not a bug.

--
nosy: +gpolo
resolution:  -> invalid
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2950>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2806] Py30a5: Tk Menu Alt-f behaves differently Linux vs Windows

2008-05-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Using a frame and menubutton for creating a menubar has been deprecated
for a long time. I tried finding when exactly it got "marked as
deprecated", but I found just this page http://wiki.tcl.tk/4055 which
says about a decade ago.

--
nosy: +gpolo
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2806>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2906] tkinter, assorted fixes

2008-05-25 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I found a problem in the previous patch, new one added. This patch now
only considers tuple and list as possible option value that should be
joined, and the items inside the list or tuple should be either a string
or integer, otherwise it doesn't try to join the values.

The problem in the previous patch is that it would always join the value
independent of the value's content. But if an option is composed of a
tuple of tuples (used by dialogs), this conversion shouldn't be done.

Added file: http://bugs.python.org/file10440/fixes_Tkinter.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2906>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2906] tkinter, assorted fixes

2008-05-25 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10362/fixes_tkinter.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2906>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2983] Ttk support for Tkinter

2008-05-27 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Hello, this issue could be considered an extension of issue2618 and
maybe I should have continued there but.. continuing,

I'm proposing the inclusion of a ttk module (should be renamed to Ttk
for python 2.x) that would fit inside lib-tk or the new tkinter package.
This is a wrapper for the new themed widget set included with Tk 8.5,
which will also work if you have the tile package installed and an older
Tk version (I tested with Tk 8.4 only).

The code and docs are at: 
http://svn.python.org/view/sandbox/trunk/ttk-gsoc/

--
components: Tkinter
messages: 67419
nosy: gpolo
severity: normal
status: open
title: Ttk support for Tkinter
versions: Python 2.5, Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2983>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1658] "RuntimeError: dictionary changed size during iteration" in Tkinter

2008-05-29 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

There is this same problem at scrolledtext.py (new name). I'm attaching
a patch that is a bit different that correct both cases.

--
nosy: +gpolo
Added file: http://bugs.python.org/file10477/tkinter_issue1658.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1658>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3015] tkinter with wantobjects=False has been broken for some time

2008-05-30 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

This affects only py3k, but apparently tkinter has been in this
situation for more than 9 months now.
I see these lines at _tkinter.c:

const char *s = Tcl_GetStringResult(self->interp);
const char *p = s;

res = PyUnicode_FromStringAndSize(s, (int)(p-s));

and I was wondering how could res not end up being an empty string
always ? Then I did some quick tests here and the return is always an
empty string, when wantobjects is set to False. Maybe the second line
should be:

const char *p = strchr(s, '\0');

I've attached this correction. Not sure if it is the best way to solve
the problem.

--
components: Tkinter
files: tkinter_wantobjects.diff
keywords: patch
messages: 67562
nosy: gpolo
severity: normal
status: open
title: tkinter with wantobjects=False has been broken for some time
versions: Python 3.0
Added file: http://bugs.python.org/file10482/tkinter_wantobjects.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3015>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3015] tkinter with wantobjects=False has been broken for some time

2008-05-31 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I will agree that wantobjects=False should go, it is also discouraged to
use Tcl_GetStringResult because it may lose information. 

But something should be done at FromObj since it accesses Tcl_Obj fields
directly, and it may end up not using the current object representation
which may cause weird things like in issue1447222. Said that, I'm not
sure how to fix it for now.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3015>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3015] tkinter with wantobjects=False has been broken for some time

2008-05-31 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I've removed wantobjects and substituted some internalRep usage too.

Added file: http://bugs.python.org/file10484/remove_wantobjects_internalRep.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3015>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1447222] tkinter Dialog fails when more than four buttons are used

2008-05-31 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This is a workaround and seems to be the way to go.

--
keywords: +patch
Added file: http://bugs.python.org/file10485/Dialog_workaround.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1447222>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3018] tkinter demos fixed

2008-05-31 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

I've fixed the tkinter demos at py3k. And excluding the import fixes,
most of these could be backported to python 2.x too.

--
components: Tkinter
files: tkinter_demo_fixes.diff
keywords: patch
messages: 67579
nosy: gpolo
severity: normal
status: open
title: tkinter demos fixed
versions: Python 3.0
Added file: http://bugs.python.org/file10486/tkinter_demo_fixes.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3018>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3018] tkinter demos fixed

2008-05-31 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I forgot to say that some demos weren't fixed by the previous patch,
demo/reasons below:

guido/ss1rexec is gone
guido/MimeViewer can't test it right now
guido/mbox   can't test it right now
guido/ManPagepartly fixed, may contain UnicodeDecodeError issues

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3018>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3018] tkinter demos fixed

2008-06-01 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10486/tkinter_demo_fixes.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3018>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3018] tkinter demos fixed

2008-06-01 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10492/tkinter_demo_fixes.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3018>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3018] tkinter demos fixed

2008-06-01 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3018>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3018] tkinter demos fixed

2008-06-01 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

By the way.. the demo tkinter/guido/ss1 isn't fixed, since rexec is gone

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3018>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3022] mailbox module, two small fixes

2008-06-01 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Erm.. sorry, the first correction is directly related to get_message not
get_sequences per se.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3022] mailbox module, two small fixes

2008-06-01 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

While fixing the tkinter demos, I found some problems when moving from
mhlib to mailbox that are corrected in the attached patch.

The first fix:

-for name, key_list in self.get_sequences():
+for name, key_list in self.get_sequences().iteritems():

I'm not sure someone else used the module before, or at least
get_sequences() since it returns a dict and it just fails in the current
code.

The second fix is about the .mh_sequences file format I found here, it
may have some lines with one space, or two, after its content which was
causing the get_sequences() to fail too.

--
components: Library (Lib)
files: mailbox_fixes.diff
keywords: patch, patch
messages: 67605
nosy: gpolo
severity: normal
status: open
title: mailbox module, two small fixes
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10497/mailbox_fixes.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3022] mailbox module, two small fixes

2008-06-01 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Added a test case

Added file: 
http://bugs.python.org/file10498/test_get_message_with_sequences.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2906] tkinter, assorted fixes

2008-06-02 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I found a case where the support for values under list or tuple would
fail, when the contents contain spaces it needs a proper tcl formatting.
I'm attaching a new patch that fixes this.

--
resolution: accepted -> 
status: closed -> open
Added file: http://bugs.python.org/file10504/tkinter_tuple_list_support.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2906>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1730136] tkFont.__eq__ gives type error

2008-06-03 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1730136>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3033] tkFont added displayof where necessary

2008-06-03 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Added support for -displayof where necessary in tkFont

--
components: Tkinter
files: tkFont_displayof_added.diff
keywords: patch, patch
messages: 67662
nosy: gpolo
severity: normal
status: open
title: tkFont added displayof where necessary
versions: Python 2.6
Added file: http://bugs.python.org/file10509/tkFont_displayof_added.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3033>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3034] tkFont added displayof where necessary

2008-06-03 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Added support for -displayof where necessary in tkFont

--
components: Tkinter
files: tkFont_displayof_added.diff
keywords: patch, patch
messages: 67663
nosy: gpolo
severity: normal
status: open
title: tkFont added displayof where necessary
versions: Python 2.6
Added file: http://bugs.python.org/file10510/tkFont_displayof_added.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3034>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3034] tkFont added displayof where necessary

2008-06-03 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Duplicate of #3033, sorry

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3034>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1730136] tkFont.__eq__ gives type error

2008-06-03 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Patch added

--
keywords: +patch
nosy: +gpolo
Added file: http://bugs.python.org/file10508/tkFont.Font.__eq__.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1730136>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3032] tkFont added displayof where necessary

2008-06-03 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


--
resolution:  -> duplicate
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3032>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3032] tkFont added displayof where necessary

2008-06-03 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


--
components: Tkinter
keywords: patch
nosy: gpolo
severity: normal
status: open
title: tkFont added displayof where necessary
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3032>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1500773] wm_attributes doesn't take keyword arguments

2008-06-03 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I'm adding my own version, this was done against python-trunk

--
nosy: +gpolo
Added file: http://bugs.python.org/file10513/issue1500773.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1500773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3035] Removing apparently unwanted functions from Tkinter

2008-06-03 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Patch for removing some unwanted, and probably not used, functions at
tkinter/__init__.

--
components: Tkinter
files: removed_index_funcs.diff
keywords: patch, patch
messages: 67669
nosy: gpolo
severity: normal
status: open
title: Removing apparently unwanted functions from Tkinter
versions: Python 3.0
Added file: http://bugs.python.org/file10514/removed_index_funcs.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3035>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1482122] Shift+Backspace exhibits odd behavior

2008-06-03 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I've tested this on Linux and on Tk 8.4 I got "\b", and the same
happened with Tkinter. On Linux, again, with Tk 8.5 I got a rectangle
char (something invalid), and this repeated at Tkinter.

This is not a Tkinter issue.

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1482122>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1702681] Prevent textwrap from breaking words at hyphens

2008-06-03 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

"Duplicate" of issue2659

--
nosy: +gpolo
resolution:  -> duplicate
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1702681>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3038] Return results from Python callbacks to Tcl as Tcl objects, please backport it.

2008-06-04 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

I'm not sure if it is okay to ask this here, but could someone backport
r59653 ("Return results from Python callbacks to Tcl as Tcl objects.")
to releas25-maint ? Maybe it is already "marked" to be backported by
someone, if it is the case this could be closed, otherwise leave this as
a remainder.

Thanks.

--
components: Tkinter
messages: 67707
nosy: gpolo
severity: normal
status: open
title: Return results from Python callbacks to Tcl as Tcl objects, please 
backport it.
type: feature request

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3038>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3043] Recursion bug in deepcopy

2008-06-05 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This should have been fixed at 2.2, as long as you change your classes
to new-style classes. If it still happens, post a sample code using your
new code that uses new-style classes.

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3043>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3059] Removing s.decode at Lib/calendar.py

2008-06-07 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

I've removed calls to s.decode found at Lib/calendar.py as it is no
longer needed in py3k and doesn't even work (since .decode is gone).

--
components: Library (Lib)
files: no_strdecode.diff
keywords: patch
messages: 67815
nosy: gpolo
severity: normal
status: open
title: Removing s.decode at Lib/calendar.py
versions: Python 3.0
Added file: http://bugs.python.org/file10546/no_strdecode.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3059>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3059] Removing .decode calls from Lib/calendar.py

2008-06-07 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


--
title: Removing s.decode at Lib/calendar.py -> Removing .decode calls from 
Lib/calendar.py

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3059>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1500773] wm_attributes doesn't take keyword arguments

2008-06-07 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10513/issue1500773.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1500773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1500773] wm_attributes doesn't take keyword arguments

2008-06-07 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10548/issue1500773.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1500773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I just checked that sys.maxsize was added May 20, so you just need a
newer build.

--
nosy: +gpolo
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3086>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1774370] Add Tkinter.Checkbutton get() and set(value)

2008-06-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

The checkbutton widget doesn't have get and set commands, so I'm not
sure why you said to look at its man page.

But the idea of not needing to play with SomeVar creation is good, I
like it, but then I would prefer to add it to all the other widgets that
play with it. And it could be a property.

--
nosy: +gpolo
resolution:  -> wont fix
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1774370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3139] print is not thread safe

2008-06-19 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Wasn't that always known ? Maybe I'm missing something here.

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3139>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue449227] rlcompleter add "(" to callables feature

2008-06-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This is nearly good. 
But I have some notes: you don't need to import operator here, just use
the built-in callable; stick to <80 columns; leave a space after a comma.

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue449227>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue449227] rlcompleter add "(" to callables feature

2008-06-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

On Tue, Jun 24, 2008 at 3:42 PM, Manuel Muradás <[EMAIL PROTECTED]> wrote:
>
> Manuel Muradás <[EMAIL PROTECTED]> added the comment:
>
> Guilherme,
> Thanks a lot for taking some time to review my patch.
> Here is a new version.
>
> Please take another look and tell me what do you think about it.
> Thanks again

That is good to be applied now.

>
> Added file: http://bugs.python.org/file10721/rlcompleter2.6.diff
>
> ___
> Python tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue449227>
> ___
>

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue449227>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3193] Python 2.5.2 - Python[2420:613] Error loading / flat namespace error

2008-06-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Neither pyglet nor anything else you installed is part of Python's
source, you will have to re-report this at the appropriate place.

--
nosy: +gpolo
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3193>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1774370] Add Tkinter.Checkbutton get() and set(value)

2008-06-26 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

On Thu, Jun 26, 2008 at 1:02 PM, Graham Horler <[EMAIL PROTECTED]> wrote:
>
> Graham Horler <[EMAIL PROTECTED]> added the comment:
>...
> When you create a Checkbutton widget without giving a variable=SomeVar,
> a default variable is created which Tkinter does not give you easy
> access to.

I'm aware of that and that is why everywhere I see Checkbutton being
used I see a explicit variable being created.

> ...
> What do you mean by "add it to all the other widgets that play with it"?
>

I was referring to the other widgets that accepts *variable options.
Ideally I would to prefer to never need to instantiate Variable or any
of its subclasses, adding methods at the correct places. So what I
meant was to add this functionality everywhere it would cause some
benefit, not only for Checkbutton.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1774370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1774370] Add Tkinter.Checkbutton get() and set(value)

2008-06-26 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

> Graham Horler <[EMAIL PROTECTED]> added the comment:
>
>> I'm aware of that and that is why everywhere I see Checkbutton
>> being used I see a explicit variable being created.
>
> Absolutely the reason for this patch, to get rid of unnecessary code.
> What's not to like?

You are not getting my point here. What I'm trying to say is: if you
are going to add such code to make it easier to get/set the variable
option value then you better add it to every other widget that
supports a variable option, or a textvariable (*variable in general).
This would make things uniform, you would never need to create a
Variable instance yourself. What I would really hate to see is a
widget that acts like a Variable was created for me, so I can
access/set its value, and others that have the same option but doesn't
allow me that.
And, finally, being explicit is not a bad thing.

>
>> I was referring to the other widgets that accepts *variable options.
>> ... add this functionality everywhere it would cause some
>> benefit, not only for Checkbutton.
>
> I'm all for that, just could not find another widget that created an
> inaccessible default variable.  Suggestions welcome.
>

Radiobutton for example ?

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1774370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3248] ScrolledText can't be placed in a PanedWindow

2008-06-30 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Right now ScrolledText can't be added to a Tkinter.PanedWindow, also
can't be added to a ttk.Notebook (which is not part of the stdlib),
because it is a lacking a proper __str__ method.

Run the following sample code to check how it fails:
import Tkinter
import ScrolledText

paned = Tkinter.PanedWindow()
stext = ScrolledText.ScrolledText(paned)
paned.add(stext)

--
components: Tkinter
files: scrolledtext_masterstr.diff
keywords: patch
messages: 69037
nosy: gpolo
severity: normal
status: open
title: ScrolledText can't be placed in a PanedWindow
versions: Python 2.6
Added file: http://bugs.python.org/file10787/scrolledtext_masterstr.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3248>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-17 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This is somewhat obscure to notice but the problem is towards that
getattr on attr_matches. For "int" specifically, it will try to get the
attribute '__abstractmethods__' (which is a member of int.__class__) and
will raise an AttributeError but then the exception is discarded by the
readline module.
A workaround is to change that getattr to:

try:
val = getattr(object, word)
except AttributeError:
continue

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3396>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2638] tkSimpleDialog Window Flashing

2008-07-17 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

It would be more appropriate to properly use withdraw and deiconify
then. I'm attaching a patch that uses them.

--
keywords: +patch
Added file: http://bugs.python.org/file10931/issue_2638.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2638>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2008-07-18 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Follows a patch that adds support for the new data option supported
event generate. It allows virtual events to pass a tcl object.

This patch is only intended to correctly support tcl objects, trying to
pass other objects (like a dict) will result in None being returned. If
you want to correctly pass and receive a dict, make it an attribute of
the tcl object being passed.

E.g.:

import Tkinter

def handle_it(event):
print event.data.something

root = Tkinter.Tk()
root.something = {1: 2}
root.after(1, lambda: root.event_generate('<>', data=root))
root.bind('<>', handle_it)
root.mainloop()

--
components: Tkinter
files: event_generate__data.diff
keywords: patch
messages: 69951
nosy: gpolo
severity: normal
status: open
title: Add support for the new data option supported by event generate (Tk 8.5)
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10934/event_generate__data.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3405>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3372] socket.setsockopt() is broken for multicast TTL and Loop options

2008-07-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This is already fixed in release24-maint, release25-maint, trunk and py3k.

--
nosy: +gpolo
resolution:  -> out of date
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3372>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3406] LocaleTextCalendar and LocaleHTMLCalendar break without a locale

2008-07-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This was fixed in r45302 and r58936

--
nosy: +gpolo
resolution:  -> out of date
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3406>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2008-07-19 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Actually, it could be the "detail" field too according to
http://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm#M24
And this field may not exist, so I'm checking for that now.

New patch added.

Added file: http://bugs.python.org/file10948/event_generate__data2.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3405>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2008-07-19 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10934/event_generate__data.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3405>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2983] Ttk support for Tkinter

2008-07-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I've added it to PyPi (http://pypi.python.org/pypi/pyttk) yesterday to
facilitate the process of installing the module (without needing to
checkout the repo) in the hope that people will use it, and contribute
to make it better and possibly even support its inclusion into python
(given the chances of getting this into 2.6 and 3.0 are near zero now).

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2983>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3438] PyCF_DONT_IMPLY_DEDENT can be used to activate the with statement

2008-07-24 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Yesterday I read at a maillist about IDLE being able to use the "with"
statement in python 2.5 without needing to explicitly doing "from
__future__ import with_statement", then today I started tracing the
origin of this. It starts at the use of the InteractiveInterpreter from
the code module (so this report affects any custom shells based on it),
which uses the codeop module to compile lines.

The Compile class of the codeop module, innocently compiles the passed
source with a PyCF_DONT_IMPLY_DEDENT flag by default (I'm not going to
enter in the other details done by Compile). 
This flag is then converted to PyPARSE_DONT_IMPLY_DEDENT (defined at
parsetok.py with a value of 0x0002) by a PARSER_FLAGS macro at
pythonrun.c. Later on the function parsertok at Parser/parsetok.c is
called and it performs this check "if (flags &
PyPARSE_WITH_IS_KEYWORD)", but PyPARSE_WITH_IS_KEYWORD right now has a
value of 0x0003, so this check ends up working for both
PyPARSE_WITH_IS_KEYWORD and PyPARSE_DONT_IMPLY_DEDENT, causing the
with_statement to be enabled if the PyCF_DONT_IMPLY_DEDENT flag is
passed to the compile builtin.

To test this, start the interpreter (python 2.5) and:

>>> a = compile('with open("something") as x: pass\n', '-', 'single', 0x200)
>>> import __future__
>>> a = compile('with open("something") as x: pass\n', '-', 'single',
__future__.with_statement.compiler_flag)

Notice how it works in both cases. 

The patch added is deadly (!) simple (make clean is needed).

--
components: Interpreter Core
files: new_PyPARSE_WITH_IS_KEYWORD.diff
keywords: patch
messages: 70210
nosy: gpolo
severity: normal
status: open
title: PyCF_DONT_IMPLY_DEDENT can be used to activate the with statement
versions: Python 2.5
Added file: http://bugs.python.org/file10968/new_PyPARSE_WITH_IS_KEYWORD.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3438>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3438] PyCF_DONT_IMPLY_DEDENT can be used to activate the with statement

2008-07-24 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

"This flag is then converted to PyPARSE_DONT_IMPLY_DEDENT (defined at
parsetok.py with a value of 0x0002"

Sorry, it is defined at "parsetok.h" of course.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3438>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3468] Satisfy her lovemaking desire

2008-07-29 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

something going on roundup?

--
nosy: +gpolo
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3468>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2902] tkinter uses MacOS

2008-07-31 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

as I understand, MacOS.SchedParams is gone for more than 4 years now
(that is why you see this hasattr check everywhere). I doubt removing
this MacOS usage will do anything.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2902>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3497] a bug in the interpreter?

2008-08-03 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Just run it a couple of times and you will hit the problem in both
"failing" and "running" examples you added.

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3497>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3538] Docstring typos

2008-08-10 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

'encoding' and 'errors' refers to the names of the arguments accepted by
str, this is not a typo.

--
nosy: +gpolo
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3538>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Uhm, this patch can cause trouble if not adapted a bit. The index method
may return None for either index1 or index2, which will cause a
TypeError in that for loop.

If code is needed to confirm this, try the following:
menu = Tkinter.Menu(tearoff=False)
menu.delete(0)

--
nosy: +gpolo
resolution: fixed -> 
status: closed -> open

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1342811>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2008-08-16 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Passing a single directory as a command line argument can make IDLE hang.
To achieve this the user needs to configure IDLE to open an editor
window by default.

The attached patch discards filenames that failed to load, so in the end
it may open an empty editor window instead of hanging.

--
components: Library (Lib)
files: fix_idle_startup_hang.diff
keywords: patch
messages: 71249
nosy: gpolo
severity: normal
status: open
title: IDLE hangs when passing invalid command line args (directory(ies) 
instead of file(s))
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11129/fix_idle_startup_hang.diff

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3573>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2693] IDLE doesn't work with Tk 8.5

2008-08-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Hi there,

The revisions you are after are r59653 and r59654.
I really don't see a reason to not patch release25-maint with those ones.

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

You could return if in that new if statement.

As you noted, the None argument is ignored there, that is because
_tkinter checks for a None parameter, and if it happens to be a None, it
then stops processing new arguments, so this is not directly related to
the delete command of the Menu widget.

Regarding a test suite.. it would be very nice to get one for Tkinter.
Some weeks ago I did some googling but found no attempts for my surprise.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1342811>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

change this:

"You could return if in that new if statement."

to:

"You could return in that new if statement.", please.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1342811>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3600] Include Tcl/Tk 8.5.4 in the windows binary for the upcoming beta3

2008-08-19 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

May I suggest the inclusion of Tcl/Tk 8.5.4 in the windows binary for
the upcoming beta3 ? beta2 included 8.5.3, but now the 8.5.4 bugfix
release arrived.

--
components: Windows
messages: 71427
nosy: gpolo
severity: normal
status: open
title: Include Tcl/Tk 8.5.4 in the windows binary for the upcoming beta3
versions: Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3600>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   >