bugMyPaint - Bugs: bug #20075, Drag problem with scratchpad +...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #20075: Drag problem with scratchpad + exception "AttributeError: 'ToolWindow' object has no attribute 'app'"

Submitted by:  bebin <bebin>
Submitted on:  Fri 17 Aug 2012 03:41:27 PM UTC  
 
Severity: 3 - NormalPriority: 5 - Normal
Status: ConfirmedPrivacy: Public
Assigned to: Andrew Chadwick <achadwick>Open/Closed: Open
Release: MyPaint 1.0.0+gitPlanned Release: None
Operating System: ubuntu 12.04

Tue 11 Dec 2012 01:57:47 PM UTC, comment #3:

Hello bebin. I'm reviewing bugs for the 1.1 release, and it looks like this one wan't addressed properly, possibly due to the title. Sorry about that.

You seem to have reported 2 problems: an exception (which has been fixed), and something else I'm not quite clear on ("i unable to release the image the image starts moving the mouse" - I don't understand this very well) that sounds a bit like a grab not releasing when you try to move the scratchpad. Is that what you observed?

A lot has changed since this bug was reported, but I note:

When the scratchpad is undocked:

a) mouse "middle button" panning works correctly
b) "space bar" panning works OK the 1st time, fails the 2nd & subsequent time (including keyboard repeats). The "New Scratchpad" button keeps being activated...
c) the toolbar "scroll view" button does not work on the scratchpad; the mode only operates within the main document area

When the scratchpad is docked:

d) same as a)
e) "space bar" panning works correctly
f) same as c)

Andrew Chadwick <achadwick>
Project AdministratorIn charge of this item.
Fri 31 Aug 2012 02:32:55 AM UTC, comment #2:

yes the problem still there in the latest build but while i hit the escape key the error message dosent pop up. Below i posted log while running in the terminal

Using GTK2
builtin python 2.6 json support
confpath = /home/bebin/.mypaint/
DEBUG: mode stack updated: <ModeStack [SwitchableFreehandMode]>
load_ora:
mimetype: image/openraster
DEBUG: mode stack updated: <ModeStack [SwitchableFreehandMode]>
device change: Core Pointer <enum GDK_SOURCE_MOUSE of type GdkInputSource>
{'width': 640, 'cm_conversions_applied': 'sRGB (no usable CM chunks found)', 'possible_legacy_png': 1, 'height': 512}
0.178s loading and converting layer png
data/background_tile.png
0.004s loading data/background_tile.png
0.189s load_ora total
Loaded scratchpad from /home/bebin/.mypaint/scratchpads/autosave.ora
Setting screen mode for "UC-LOGIC Tablet WP8060U"
Setting screen mode for "UC-LOGIC Tablet WP8060U"
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
Ignoring "ImPS/2 Generic Wheel Mouse" (probably a mouse, but it reports extra axes)
device change: UC-LOGIC Tablet WP8060U <enum GDK_SOURCE_MOUSE of type GdkInputSource>
DEBUG: mode stack updated: <ModeStack [SwitchableFreehandMode, PanViewMode]>
DEBUG: activated <gui.canvasevent.PanViewMode object at 0x308ebd0>
DEBUG: mode stack updated: <ModeStack [PanViewMode]>
DEBUG: mode stack updated: <ModeStack [SwitchableFreehandMode]>

bebin <bebin>
Thu 30 Aug 2012 07:53:14 PM UTC, comment #1:

Please confirm that the latest git master has fixed this. It should have been addressed in commit 38fe1f0, dated Sun Aug 26.

Sorry, I didn't see the bug report.

Andrew Chadwick <achadwick>
Project AdministratorIn charge of this item.
Fri 17 Aug 2012 03:41:27 PM UTC, original submission:

I loaded a image in the scratchpad and when i tried to move the image to select the color i unable to release the image the image starts moving the mouse and when i hit escape key this error message came up.

Traceback (most recent call last):
File "/home/bebin/mypaint/gui/keyboard.py", line 126, key_release_cb(self=<gui.keyboard.KeyboardManager instance>, widget=<ToolWindow object at 0x2bc3320 (GtkWindow at 0x2a0b6c0)>, event=<gtk.gdk.Event at 0x2856918: GDK_KEY_RELEASE keyval=Escape>)
# Pop all stacked modes; they should release grabs
widget.app.doc.modes.reset()
# Just in case...
AttributeError: 'ToolWindow' object has no attribute 'app'

bebin <bebin>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by achadwick (Posted a comment)
  • -unavailable- added by bebin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Dec 2012 01:57:47 PM UTCachadwickStatusReady For Test=>Confirmed
      Summaryexception "AttributeError: \'ToolWindow\' object has no attribute \'app\'"=>Drag problem with scratchpad + exception "AttributeError: 'ToolWindow' object has no attribute 'app'"
    Thu 30 Aug 2012 07:53:14 PM UTCachadwickStatusNone=>Ready For Test
      Assigned toNone=>achadwick
      Summaryscratchpad starts moving with the mouse movement=>exception "AttributeError: 'ToolWindow' object has no attribute 'app'"
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup