tortoisehg / stable (http://tortoisehg.bitbucket.org/)

TortoiseHg repository. Main line of development in "default" branch. Releases, bugfixes, and documentation improvements in "stable" branch.

Clone this repository (size: 76.0 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/tortoisehg/stable/
follow

#888 Traceback in quickop - add

Reported by Anonymous, created 2 months ago, last edited unknown.

** Please report this bug to http://bitbucket.org/tortoisehg/stable/issues or tortoisehg-discuss@lists.sourceforge.net
** Mercurial version (1.4.2).  TortoiseHg version (0.9.2)
** Command: --nofork add --listfile C:\DOCUME~1\VANACK~1\LOCALS~1\Temp\THG5.tmp
** CWD: D:\riskLib
** Extensions loaded: extdiff
Recoverable runtime error (stderr):
C:\Program Files\TortoiseHg\library.zip\tortoisehg\hgtk\hgtk.py:275: PangoWarning: couldn't load font "MS UI Gothic Not-Rotated 9", falling back to "Sans Not-Rotated 9", expect ugly output.
Traceback (most recent call last):
  File "tortoisehg\hgtk\quickop.pyo", line 193, in dialog_response
  File "tortoisehg\hgtk\quickop.pyo", line 269, in operation
  File "tortoisehg\hgtk\quickop.pyo", line 217, in switch_to
AttributeError: 'QuickOpDialog' object has no attribute 'abortbtn'
Status: resolved Responsible: Yuki KODAMA / kuy Type: bug
Milestone: none Component: quickop Version: 0.9.2

Attachments

No attachments added for this issue yet.

Comments and changes

#1

Steve Borho / sborho

→ Changed version from 0.9 to 0.9.2.

→ Changed component from nothing to quickop.

→ Changed responsible from nobody to tortoisehg.

→ Changed status from new to open.

#2

Steve Borho / sborho

→ Changed title from Python bug ? to Traceback in quickop - add.

#3

Steve Borho / sborho

Yuki: it's straight-forward to add 'hasattr' checks in the 'switch_to' function, but I'm curious why the creation of the abort button is done in an idle-callback and then hidden. Any reason not to create and hide the button at startup?


#4

Yuki KODAMA / kuy

Steve: Yes, here is the reason: since abort button shouldn't be shown at starup, I didn't want to add it at startup. Of couse I could add and hide the button, but it causes somewhat flickers.

But now we can resolve the problem of flicker with set_no_show_all() function; it can be used to let the widget ignore show_all() function callings. Unfortunately, when I designed GDialog framework (not GWindow), I didn't know the existence of set_no_show_all().

P.S. probably we can remove most of after_init() callings from TortoiseHg with set_no_show_all().


#8

Yuki KODAMA / kuy

→ Changed status from open to resolved.

quickop: prevent AttributeError caused by 'self.abortbtn'

Finally, I figured out that 'set_no_show_all()' can not be used to prevent adding bottom buttons by 'add_button()'. So I had to defer it and add it in 'after_init()'.

Fixes #888

r5668:d0cbd66e993e


Add comment / attachment

Show/hide preview

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?