Guest User

fanim console

a guest
Jun 1st, 2022
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 113.80 KB | None | 0 0
  1. #! /usr/bin/env python
  2.   File "<input>", line 1
  3.     usr/bin/env python
  4.                      ^
  5. SyntaxError: invalid syntax
  6. >>> # -*- coding: utf-8 -*-
  7. >>>
  8. >>> """
  9. ...   Copyright (C) 2016-2018, Douglas Vinicius
  10. ...
  11. ...   Distributed under the terms of GNU GPL v3 (or lesser GPL) license.
  12. ...
  13. ... Fanim is an extention for GIMP thats implements a simple timeline that can
  14. ... be used to play in sequence and manipulate layers that works as each frame of an
  15. ... frame by frame animation.
  16. ...
  17. ... """
  18. '\n  Copyright (C) 2016-2018, Douglas Vinicius\n  [email protected]\n\n  Distributed under the terms of GNU GPL v3 (or lesser GPL) license.\n\nFanim is an extention for GIMP thats implements a simple timeline that can\nbe used to play in sequence and manipulate layers that works as each frame of an \nframe by frame animation.\n\n'
  19. >>> from gimpfu import register, main, gimp, pdb, \
  20.   File "<input>", line 1
  21. SyntaxError: trailing comma not allowed without surrounding parentheses
  22. >>>         TRANSPARENT_FILL, RGBA_IMAGE, NORMAL_MODE
  23.   File "<input>", line 1
  24.     TRANSPARENT_FILL, RGBA_IMAGE, NORMAL_MODE
  25.     ^
  26. IndentationError: unexpected indent
  27. >>>
  28. >>> import pygtk
  29. >>> pygtk.require('2.0')
  30. >>> import gtk, array, time, os, json
  31. >>>
  32. >>> # general info
  33. >>> VERSION = 1.16
  34. >>> AUTHORS = ["Douglas Vinicius <[email protected]>"]
  35. >>> NAME = "FAnim Timeline " + str(VERSION)
  36. >>> WINDOW_TITLE = ("GIMP %s "%NAME)+ "[%s]"
  37. >>> COPYRIGHT = "Copyright (C) 2016-2019 \nDouglas Vinicius"
  38. >>> WEBSITE = "https://github.com/douglasvini/gimp-fanim"
  39. >>> YEAR = "2016-2019"
  40. >>> DESCRIPTION = "Timeline to edit frames and play animations with some aditional functionality."
  41. >>> GIMP_LOCATION = "<Image>/FAnim/FAnim Timeline"
  42. >>>
  43. >>> # fixed frames prefix in the end to store visibility fix for the playback understand.
  44. >>> PREFIX="_fix"
  45. >>>
  46. >>> # playback macros
  47. >>> NEXT = 1
  48. >>> PREV = 2
  49. >>> END = 3
  50. >>> START = 4
  51. >>> NOWHERE = 5
  52. >>> POS = 6
  53. >>> GIMP_ACTIVE = 7
  54. >>>
  55. >>> # settings constant macros
  56. >>> WIN_WIDTH = "win_width"
  57. >>> WIN_HEIGHT = "win_height"
  58. >>> WIN_POSX = "win_posx"
  59. >>> WIN_POSY = "win_posy"
  60. >>> FRAMERATE = "framerate"
  61. >>> OSKIN_DEPTH = "oskin_depth"
  62. >>> OSKIN_ONPLAY = "oskin_onplay"
  63. >>> OSKIN_FORWARD = "oskin_forward"
  64. >>> OSKIN_BACKWARD = "oskin_backward"
  65. >>>
  66. >>> # state to disable the buttons
  67. >>> PLAYING = 1
  68. >>> NO_FRAMES = 2
  69. >>>
  70. >>> # onionskin constants
  71. >>> OSKIN_MAX_DEPTH = 6
  72. >>> OSKIN_MAX_OPACITY = 50.0
  73. >>>
  74. >>> CONF_FILENAME = "conf.json"
  75. >>>
  76. >>> class Utils:
  77. ...
  78. ...     @staticmethod
  79. ...     def add_fixed_prefix(layer):
  80. ...         """
  81. ...         add the prefix at the end of the layer name to store if the frae is
  82. ...         visibly fixed or not.
  83. ...         """
  84. ...         if Utils.is_frame_fixed(layer): return
  85. ...         layer.name = layer.name + PREFIX
  86. ...
  87. >>>     @staticmethod
  88.   File "<input>", line 1
  89.     @staticmethod
  90.     ^
  91. IndentationError: unexpected indent
  92. >>>     def rem_fixed_prefix(layer):
  93.   File "<input>", line 1
  94.     def rem_fixed_prefix(layer):
  95.     ^
  96. IndentationError: unexpected indent
  97. >>>         """
  98.  File "<input>", line 1
  99.    """
  100.     ^
  101. IndentationError: unexpected indent
  102. >>>         remove the prefix at the end of the layer name to store if the frae is
  103.   File "<input>", line 1
  104.     remove the prefix at the end of the layer name to store if the frae is
  105.     ^
  106. IndentationError: unexpected indent
  107. >>>         visibly fixed or not.
  108.   File "<input>", line 1
  109.     visibly fixed or not.
  110.     ^
  111. IndentationError: unexpected indent
  112. >>>         """
  113.  File "<input>", line 1
  114.    """
  115.     ^
  116. IndentationError: unexpected indent
  117. >>>         if not Utils.is_frame_fixed(layer): return
  118.   File "<input>", line 1
  119.     if not Utils.is_frame_fixed(layer): return
  120.     ^
  121. IndentationError: unexpected indent
  122. >>>         layer.name = layer.name[:-4]
  123.   File "<input>", line 1
  124.     layer.name = layer.name[:-4]
  125.     ^
  126. IndentationError: unexpected indent
  127. >>>
  128. >>>     @staticmethod
  129.   File "<input>", line 1
  130.     @staticmethod
  131.     ^
  132. IndentationError: unexpected indent
  133. >>>     def is_frame_fixed(layer):
  134.   File "<input>", line 1
  135.     def is_frame_fixed(layer):
  136.     ^
  137. IndentationError: unexpected indent
  138. >>>         """
  139.  File "<input>", line 1
  140.    """
  141.     ^
  142. IndentationError: unexpected indent
  143. >>>         get if the frame is visibly fixed or not based on the name of the layer.
  144.   File "<input>", line 1
  145.     get if the frame is visibly fixed or not based on the name of the layer.
  146.     ^
  147. IndentationError: unexpected indent
  148. >>>         """
  149.  File "<input>", line 1
  150.    """
  151.     ^
  152. IndentationError: unexpected indent
  153. >>>         name = layer.name
  154.   File "<input>", line 1
  155.     name = layer.name
  156.     ^
  157. IndentationError: unexpected indent
  158. >>>         return name[-4:] == PREFIX
  159.   File "<input>", line 1
  160.     return name[-4:] == PREFIX
  161.     ^
  162. IndentationError: unexpected indent
  163. >>>
  164. >>>     @staticmethod
  165.   File "<input>", line 1
  166.     @staticmethod
  167.     ^
  168. IndentationError: unexpected indent
  169. >>>     def button_stock(stock,size):
  170.   File "<input>", line 1
  171.     def button_stock(stock,size):
  172.     ^
  173. IndentationError: unexpected indent
  174. >>>         """
  175.  File "<input>", line 1
  176.    """
  177.     ^
  178. IndentationError: unexpected indent
  179. >>>         Return a button with a image from stock items.
  180.   File "<input>", line 1
  181.     Return a button with a image from stock items.
  182.     ^
  183. IndentationError: unexpected indent
  184. >>>         """
  185.  File "<input>", line 1
  186.    """
  187.     ^
  188. IndentationError: unexpected indent
  189. >>>         b = gtk.Button()
  190.   File "<input>", line 1
  191.     b = gtk.Button()
  192.     ^
  193. IndentationError: unexpected indent
  194. >>>         img = gtk.Image()
  195.   File "<input>", line 1
  196.     img = gtk.Image()
  197.     ^
  198. IndentationError: unexpected indent
  199. >>>         img.set_from_stock(stock,size)
  200.   File "<input>", line 1
  201.     img.set_from_stock(stock,size)
  202.     ^
  203. IndentationError: unexpected indent
  204. >>>         b.set_image(img)
  205.   File "<input>", line 1
  206.     b.set_image(img)
  207.     ^
  208. IndentationError: unexpected indent
  209. >>>         return b
  210.   File "<input>", line 1
  211.     return b
  212.     ^
  213. IndentationError: unexpected indent
  214. >>>
  215. >>>     @staticmethod
  216.   File "<input>", line 1
  217.     @staticmethod
  218.     ^
  219. IndentationError: unexpected indent
  220. >>>     def toggle_button_stock(stock,size):
  221.   File "<input>", line 1
  222.     def toggle_button_stock(stock,size):
  223.     ^
  224. IndentationError: unexpected indent
  225. >>>         """
  226.  File "<input>", line 1
  227.    """
  228.     ^
  229. IndentationError: unexpected indent
  230. >>>         Return a button with a image from stock items
  231.   File "<input>", line 1
  232.     Return a button with a image from stock items
  233.     ^
  234. IndentationError: unexpected indent
  235. >>>         """
  236.  File "<input>", line 1
  237.    """
  238.     ^
  239. IndentationError: unexpected indent
  240. >>>         b = gtk.ToggleButton()
  241.   File "<input>", line 1
  242.     b = gtk.ToggleButton()
  243.     ^
  244. IndentationError: unexpected indent
  245. >>>         img = gtk.Image()
  246.   File "<input>", line 1
  247.     img = gtk.Image()
  248.     ^
  249. IndentationError: unexpected indent
  250. >>>         img.set_from_stock(stock,size)
  251.   File "<input>", line 1
  252.     img.set_from_stock(stock,size)
  253.     ^
  254. IndentationError: unexpected indent
  255. >>>         b.set_image(img)
  256.   File "<input>", line 1
  257.     b.set_image(img)
  258.     ^
  259. IndentationError: unexpected indent
  260. >>>         return b
  261.   File "<input>", line 1
  262.     return b
  263.     ^
  264. IndentationError: unexpected indent
  265. >>>
  266. >>>     @staticmethod
  267.   File "<input>", line 1
  268.     @staticmethod
  269.     ^
  270. IndentationError: unexpected indent
  271. >>>     def spin_button(name="variable",number_type="int",value=0,min=1,max=100,advance=1):
  272.   File "<input>", line 1
  273.     def spin_button(name="variable",number_type="int",value=0,min=1,max=100,advance=1):
  274.     ^
  275. IndentationError: unexpected indent
  276. >>>         adjustment = gtk.Adjustment(value,min,max,advance,advance)
  277.   File "<input>", line 1
  278.     adjustment = gtk.Adjustment(value,min,max,advance,advance)
  279.     ^
  280. IndentationError: unexpected indent
  281. >>>         digits = 0
  282.   File "<input>", line 1
  283.     digits = 0
  284.     ^
  285. IndentationError: unexpected indent
  286. >>>         if number_type != "int":
  287.   File "<input>", line 1
  288.     if number_type != "int":
  289.     ^
  290. IndentationError: unexpected indent
  291. >>>             digits = 3
  292.   File "<input>", line 1
  293.     digits = 3
  294.     ^
  295. IndentationError: unexpected indent
  296. >>>         l = gtk.Label(name)
  297.   File "<input>", line 1
  298.     l = gtk.Label(name)
  299.     ^
  300. IndentationError: unexpected indent
  301. >>>         b = gtk.SpinButton(adjustment,0,digits)
  302.   File "<input>", line 1
  303.     b = gtk.SpinButton(adjustment,0,digits)
  304.     ^
  305. IndentationError: unexpected indent
  306. >>>
  307. >>>         h = gtk.HBox()
  308.   File "<input>", line 1
  309.     h = gtk.HBox()
  310.     ^
  311. IndentationError: unexpected indent
  312. >>>         h.pack_start(l)
  313.   File "<input>", line 1
  314.     h.pack_start(l)
  315.     ^
  316. IndentationError: unexpected indent
  317. >>>         h.pack_start(b)
  318.   File "<input>", line 1
  319.     h.pack_start(b)
  320.     ^
  321. IndentationError: unexpected indent
  322. >>>         return h,adjustment
  323.   File "<input>", line 1
  324.     return h,adjustment
  325.     ^
  326. IndentationError: unexpected indent
  327. >>>
  328. >>>     @staticmethod
  329.   File "<input>", line 1
  330.     @staticmethod
  331.     ^
  332. IndentationError: unexpected indent
  333. >>>     def load_conffile(filename):
  334.   File "<input>", line 1
  335.     def load_conffile(filename):
  336.     ^
  337. IndentationError: unexpected indent
  338. >>>         """
  339.  File "<input>", line 1
  340.    """
  341.     ^
  342. IndentationError: unexpected indent
  343. >>>         Load configuration from a file stored in gimp user folder.
  344.   File "<input>", line 1
  345.     Load configuration from a file stored in gimp user folder.
  346.     ^
  347. IndentationError: unexpected indent
  348. >>>         """
  349.  File "<input>", line 1
  350.    """
  351.     ^
  352. IndentationError: unexpected indent
  353. >>>         directory = gimp.directory + "/fanim"
  354.   File "<input>", line 1
  355.     directory = gimp.directory + "/fanim"
  356.     ^
  357. IndentationError: unexpected indent
  358. >>>         if not os.path.exists(directory):
  359.   File "<input>", line 1
  360.     if not os.path.exists(directory):
  361.     ^
  362. IndentationError: unexpected indent
  363. >>>             os.mkdir(directory)
  364.   File "<input>", line 1
  365.     os.mkdir(directory)
  366.     ^
  367. IndentationError: unexpected indent
  368. >>>
  369. >>>         filepath = directory + "/" + filename
  370.   File "<input>", line 1
  371.     filepath = directory + "/" + filename
  372.     ^
  373. IndentationError: unexpected indent
  374. >>>         if os.path.exists(filepath):
  375.   File "<input>", line 1
  376.     if os.path.exists(filepath):
  377.     ^
  378. IndentationError: unexpected indent
  379. >>>             f = open(filepath,'r')
  380.   File "<input>", line 1
  381.     f = open(filepath,'r')
  382.     ^
  383. IndentationError: unexpected indent
  384. >>>             dic = json.load(f)
  385.   File "<input>", line 1
  386.     dic = json.load(f)
  387.     ^
  388. IndentationError: unexpected indent
  389. >>>             f.close()
  390.   File "<input>", line 1
  391.     f.close()
  392.     ^
  393. IndentationError: unexpected indent
  394. >>>             return dic
  395.   File "<input>", line 1
  396.     return dic
  397.     ^
  398. IndentationError: unexpected indent
  399. >>>
  400. >>>         else:
  401.   File "<input>", line 1
  402.     else:
  403.     ^
  404. IndentationError: unexpected indent
  405. >>>             return None
  406.   File "<input>", line 1
  407.     return None
  408.     ^
  409. IndentationError: unexpected indent
  410. >>>
  411. >>>     @staticmethod
  412.   File "<input>", line 1
  413.     @staticmethod
  414.     ^
  415. IndentationError: unexpected indent
  416. >>>     def save_conffile(filename,conf={}):
  417.   File "<input>", line 1
  418.     def save_conffile(filename,conf={}):
  419.     ^
  420. IndentationError: unexpected indent
  421. >>>         """
  422.  File "<input>", line 1
  423.    """
  424.     ^
  425. IndentationError: unexpected indent
  426. >>>         Save a configuration dictionary in a json file on user folder.
  427.   File "<input>", line 1
  428.     Save a configuration dictionary in a json file on user folder.
  429.     ^
  430. IndentationError: unexpected indent
  431. >>>         """
  432.  File "<input>", line 1
  433.    """
  434.     ^
  435. IndentationError: unexpected indent
  436. >>>         directory = gimp.directory + "/fanim"
  437.   File "<input>", line 1
  438.     directory = gimp.directory + "/fanim"
  439.     ^
  440. IndentationError: unexpected indent
  441. >>>         if not os.path.exists(directory):
  442.   File "<input>", line 1
  443.     if not os.path.exists(directory):
  444.     ^
  445. IndentationError: unexpected indent
  446. >>>             os.mkdir(directory)
  447.   File "<input>", line 1
  448.     os.mkdir(directory)
  449.     ^
  450. IndentationError: unexpected indent
  451. >>>
  452. >>>         filepath = directory + "/" + filename
  453.   File "<input>", line 1
  454.     filepath = directory + "/" + filename
  455.     ^
  456. IndentationError: unexpected indent
  457. >>>         f = open(filepath,'w')
  458.   File "<input>", line 1
  459.     f = open(filepath,'w')
  460.     ^
  461. IndentationError: unexpected indent
  462. >>>         json.dump(conf,f)
  463.   File "<input>", line 1
  464.     json.dump(conf,f)
  465.     ^
  466. IndentationError: unexpected indent
  467. >>>         f.close()
  468.   File "<input>", line 1
  469.     f.close()
  470.     ^
  471. IndentationError: unexpected indent
  472. >>>        
  473. >>>
  474. >>>
  475. >>> class ConfDialog(gtk.Dialog):
  476. ...     """
  477. ...     Create a configuration dialog to the user change the variables.
  478. ...     """
  479. ...     def __init__(self,title="Config",parent=None,config = None):
  480. ...         gtk.Dialog.__init__(self,title,parent, gtk.DIALOG_DESTROY_WITH_PARENT,
  481. ...                 ('Apply',gtk.RESPONSE_APPLY,'Cancel',gtk.RESPONSE_CANCEL))
  482. ...
  483. >>>         self.set_keep_above(True)
  484.   File "<input>", line 1
  485.     self.set_keep_above(True)
  486.     ^
  487. IndentationError: unexpected indent
  488. >>>         self.set_position(gtk.WIN_POS_CENTER)
  489.   File "<input>", line 1
  490.     self.set_position(gtk.WIN_POS_CENTER)
  491.     ^
  492. IndentationError: unexpected indent
  493. >>>
  494. >>>         self.last_config= config # settings
  495.   File "<input>", line 1
  496.     self.last_config= config # settings
  497.     ^
  498. IndentationError: unexpected indent
  499. >>>         self.atual_config = config
  500.   File "<input>", line 1
  501.     self.atual_config = config
  502.     ^
  503. IndentationError: unexpected indent
  504. >>>
  505. >>>         # setup all widgets
  506. >>>         self._setup_widgets()
  507.   File "<input>", line 1
  508.     self._setup_widgets()
  509.     ^
  510. IndentationError: unexpected indent
  511. >>>
  512. >>>     def update_config(self,widget,var_type=None):
  513.   File "<input>", line 1
  514.     def update_config(self,widget,var_type=None):
  515.     ^
  516. IndentationError: unexpected indent
  517. >>>         if isinstance(widget,gtk.Adjustment):
  518.   File "<input>", line 1
  519.     if isinstance(widget,gtk.Adjustment):
  520.     ^
  521. IndentationError: unexpected indent
  522. >>>             value = widget.get_value()
  523.   File "<input>", line 1
  524.     value = widget.get_value()
  525.     ^
  526. IndentationError: unexpected indent
  527. >>>         elif isinstance(widget,gtk.CheckButton):
  528.   File "<input>", line 1
  529.     elif isinstance(widget,gtk.CheckButton):
  530.     ^
  531. IndentationError: unexpected indent
  532. >>>             value = widget.get_active()
  533.   File "<input>", line 1
  534.     value = widget.get_active()
  535.     ^
  536. IndentationError: unexpected indent
  537. >>>         self.atual_config[var_type] = value
  538.   File "<input>", line 1
  539.     self.atual_config[var_type] = value
  540.     ^
  541. IndentationError: unexpected indent
  542. >>>
  543. >>>     def _setup_widgets(self):
  544.   File "<input>", line 1
  545.     def _setup_widgets(self):
  546.     ^
  547. IndentationError: unexpected indent
  548. >>>
  549. >>>         h_space = 4 # horizontal space
  550.   File "<input>", line 1
  551.     h_space = 4 # horizontal space
  552.     ^
  553. IndentationError: unexpected indent
  554. >>>
  555. >>>         # create the frames to contein the diferent settings.
  556. >>>         f_time = gtk.Frame(label="Time")
  557.   File "<input>", line 1
  558.     f_time = gtk.Frame(label="Time")
  559.     ^
  560. IndentationError: unexpected indent
  561. >>>         f_oskin = gtk.Frame(label="Onion Skin")
  562.   File "<input>", line 1
  563.     f_oskin = gtk.Frame(label="Onion Skin")
  564.     ^
  565. IndentationError: unexpected indent
  566. >>>         self.set_size_request(300,-1)
  567.   File "<input>", line 1
  568.     self.set_size_request(300,-1)
  569.     ^
  570. IndentationError: unexpected indent
  571. >>>         self.vbox.pack_start(f_time,True,True,h_space)
  572.   File "<input>", line 1
  573.     self.vbox.pack_start(f_time,True,True,h_space)
  574.     ^
  575. IndentationError: unexpected indent
  576. >>>         self.vbox.pack_start(f_oskin,True,True,h_space)
  577.   File "<input>", line 1
  578.     self.vbox.pack_start(f_oskin,True,True,h_space)
  579.     ^
  580. IndentationError: unexpected indent
  581. >>>
  582. >>>         # create the time settings.
  583. >>>         th = gtk.HBox()
  584.   File "<input>", line 1
  585.     th = gtk.HBox()
  586.     ^
  587. IndentationError: unexpected indent
  588. >>>         fps,fps_spin = Utils.spin_button("Framerate",'int',self.last_config[FRAMERATE],1,100) #conf fps
  589.   File "<input>", line 1
  590.     fps,fps_spin = Utils.spin_button("Framerate",'int',self.last_config[FRAMERATE],1,100) #conf fps
  591.     ^
  592. IndentationError: unexpected indent
  593. >>>
  594. >>>         th.pack_start(fps,True,True,h_space)
  595.   File "<input>", line 1
  596.     th.pack_start(fps,True,True,h_space)
  597.     ^
  598. IndentationError: unexpected indent
  599. >>>
  600. >>>         f_time.add(th)
  601.   File "<input>", line 1
  602.     f_time.add(th)
  603.     ^
  604. IndentationError: unexpected indent
  605. >>>         # create onion skin settings
  606. >>>         ov = gtk.VBox()
  607.   File "<input>", line 1
  608.     ov = gtk.VBox()
  609.     ^
  610. IndentationError: unexpected indent
  611. >>>         f_oskin.add(ov)
  612.   File "<input>", line 1
  613.     f_oskin.add(ov)
  614.     ^
  615. IndentationError: unexpected indent
  616. >>>        
  617. >>>         # fist line
  618. >>>         oh1 = gtk.HBox()
  619.   File "<input>", line 1
  620.     oh1 = gtk.HBox()
  621.     ^
  622. IndentationError: unexpected indent
  623. >>>         #conf depth
  624. >>>         depth,depth_spin=Utils.spin_button("Depth",'int',
  625.   File "<input>", line 1
  626.     depth,depth_spin=Utils.spin_button("Depth",'int',
  627.     ^
  628. IndentationError: unexpected indent
  629. >>>                 self.last_config[OSKIN_DEPTH],1,OSKIN_MAX_DEPTH,1)
  630.   File "<input>", line 1
  631.     self.last_config[OSKIN_DEPTH],1,OSKIN_MAX_DEPTH,1)
  632.     ^
  633. IndentationError: unexpected indent
  634. >>>
  635. >>>         on_play = gtk.CheckButton("On Play")
  636.   File "<input>", line 1
  637.     on_play = gtk.CheckButton("On Play")
  638.     ^
  639. IndentationError: unexpected indent
  640. >>>         on_play.set_active(self.last_config[OSKIN_ONPLAY])
  641.   File "<input>", line 1
  642.     on_play.set_active(self.last_config[OSKIN_ONPLAY])
  643.     ^
  644. IndentationError: unexpected indent
  645. >>>
  646. >>>         oh1.pack_start(depth,True,True,h_space)
  647.   File "<input>", line 1
  648.     oh1.pack_start(depth,True,True,h_space)
  649.     ^
  650. IndentationError: unexpected indent
  651. >>>         oh1.pack_start(on_play,True,True,h_space)
  652.   File "<input>", line 1
  653.     oh1.pack_start(on_play,True,True,h_space)
  654.     ^
  655. IndentationError: unexpected indent
  656. >>>         ov.pack_start(oh1)
  657.   File "<input>", line 1
  658.     ov.pack_start(oh1)
  659.     ^
  660. IndentationError: unexpected indent
  661. >>>         # second line
  662. >>>         oh2 = gtk.HBox()
  663.   File "<input>", line 1
  664.     oh2 = gtk.HBox()
  665.     ^
  666. IndentationError: unexpected indent
  667. >>>         forward = gtk.CheckButton("Forward")
  668.   File "<input>", line 1
  669.     forward = gtk.CheckButton("Forward")
  670.     ^
  671. IndentationError: unexpected indent
  672. >>>         forward.set_active(self.last_config[OSKIN_FORWARD])
  673.   File "<input>", line 1
  674.     forward.set_active(self.last_config[OSKIN_FORWARD])
  675.     ^
  676. IndentationError: unexpected indent
  677. >>>
  678. >>>         backward = gtk.CheckButton("Backward")
  679.   File "<input>", line 1
  680.     backward = gtk.CheckButton("Backward")
  681.     ^
  682. IndentationError: unexpected indent
  683. >>>         backward.set_active(self.last_config[OSKIN_BACKWARD])
  684.   File "<input>", line 1
  685.     backward.set_active(self.last_config[OSKIN_BACKWARD])
  686.     ^
  687. IndentationError: unexpected indent
  688. >>>
  689. >>>         oh2.pack_start(forward,True,True,h_space)
  690.   File "<input>", line 1
  691.     oh2.pack_start(forward,True,True,h_space)
  692.     ^
  693. IndentationError: unexpected indent
  694. >>>         oh2.pack_start(backward,True,True,h_space)
  695.   File "<input>", line 1
  696.     oh2.pack_start(backward,True,True,h_space)
  697.     ^
  698. IndentationError: unexpected indent
  699. >>>
  700. >>>         ov.pack_start(oh2)
  701.   File "<input>", line 1
  702.     ov.pack_start(oh2)
  703.     ^
  704. IndentationError: unexpected indent
  705. >>>         # last line
  706. >>>
  707. >>>         # connect a callback to all
  708. >>>        
  709. >>>         fps_spin.connect("value_changed",self.update_config,FRAMERATE)
  710.   File "<input>", line 1
  711.     fps_spin.connect("value_changed",self.update_config,FRAMERATE)
  712.     ^
  713. IndentationError: unexpected indent
  714. >>>         depth_spin.connect("value_changed",self.update_config,OSKIN_DEPTH)
  715.   File "<input>", line 1
  716.     depth_spin.connect("value_changed",self.update_config,OSKIN_DEPTH)
  717.     ^
  718. IndentationError: unexpected indent
  719. >>>         on_play.connect("toggled",self.update_config,OSKIN_ONPLAY)
  720.   File "<input>", line 1
  721.     on_play.connect("toggled",self.update_config,OSKIN_ONPLAY)
  722.     ^
  723. IndentationError: unexpected indent
  724. >>>         forward.connect("toggled",self.update_config,OSKIN_FORWARD)
  725.   File "<input>", line 1
  726.     forward.connect("toggled",self.update_config,OSKIN_FORWARD)
  727.     ^
  728. IndentationError: unexpected indent
  729. >>>         backward.connect("toggled",self.update_config,OSKIN_BACKWARD)
  730.   File "<input>", line 1
  731.     backward.connect("toggled",self.update_config,OSKIN_BACKWARD)
  732.     ^
  733. IndentationError: unexpected indent
  734. >>>
  735. >>>         # show all
  736. >>>         self.show_all()
  737.   File "<input>", line 1
  738.     self.show_all()
  739.     ^
  740. IndentationError: unexpected indent
  741. >>>
  742. >>>     def run(self):
  743.   File "<input>", line 1
  744.     def run(self):
  745.     ^
  746. IndentationError: unexpected indent
  747. >>>         result = super(ConfDialog,self).run()
  748.   File "<input>", line 1
  749.     result = super(ConfDialog,self).run()
  750.     ^
  751. IndentationError: unexpected indent
  752. >>>         conf = self.last_config
  753.   File "<input>", line 1
  754.     conf = self.last_config
  755.     ^
  756. IndentationError: unexpected indent
  757. >>>
  758. >>>         if result == gtk.RESPONSE_APPLY:
  759.   File "<input>", line 1
  760.     if result == gtk.RESPONSE_APPLY:
  761.     ^
  762. IndentationError: unexpected indent
  763. >>>             conf = self.atual_config
  764.   File "<input>", line 1
  765.     conf = self.atual_config
  766.     ^
  767. IndentationError: unexpected indent
  768. >>>
  769. >>>         return result, conf
  770.   File "<input>", line 1
  771.     return result, conf
  772.     ^
  773. IndentationError: unexpected indent
  774. >>>
  775. >>> class Player():
  776. ...     """
  777. ...     This class will implement a loop to play the frames through time, after
  778. ...     play each frame, a gtk event handler is called to not freaze the UI.
  779. ...     """
  780. ...     def __init__(self,timeline,play_button):
  781. ...
  782. ...         self.timeline = timeline
  783. ...         self.play_button = play_button
  784. ...         self.cnt = 0
  785. ...
  786. >>>     def start(self):
  787.   File "<input>", line 1
  788.     def start(self):
  789.     ^
  790. IndentationError: unexpected indent
  791. >>>        
  792. >>>         while  self.timeline.is_playing:
  793.   File "<input>", line 1
  794.     while  self.timeline.is_playing:
  795.     ^
  796. IndentationError: unexpected indent
  797. >>>
  798. >>>             self.timeline.on_goto(None,NEXT)
  799.   File "<input>", line 1
  800.     self.timeline.on_goto(None,NEXT)
  801.     ^
  802. IndentationError: unexpected indent
  803. >>>
  804. >>>             # while has fixed frames jump to the next
  805. >>>             while self.timeline.frames[self.timeline.active].fixed \
  806.   File "<input>", line 1
  807.     while self.timeline.frames[self.timeline.active].fixed \
  808.     ^
  809. IndentationError: unexpected indent
  810. >>>                     and self.timeline.active < len(self.timeline.frames):
  811.   File "<input>", line 1
  812.     and self.timeline.active < len(self.timeline.frames):
  813.     ^
  814. IndentationError: unexpected indent
  815. >>>                 self.timeline.on_goto(None,NEXT)
  816.   File "<input>", line 1
  817.     self.timeline.on_goto(None,NEXT)
  818.     ^
  819. IndentationError: unexpected indent
  820. >>>
  821. >>>             # see if is the end of the timeline when theres no replay.
  822. >>>             if not self.timeline.is_replay and self.timeline.active == \
  823.   File "<input>", line 1
  824.     if not self.timeline.is_replay and self.timeline.active == \
  825.     ^
  826. IndentationError: unexpected indent
  827. >>>                     len(self.timeline.frames)-1:
  828.   File "<input>", line 1
  829.     len(self.timeline.frames)-1:
  830.     ^
  831. IndentationError: unexpected indent
  832. >>>                 self.timeline.on_toggle_play(self.play_button)
  833.   File "<input>", line 1
  834.     self.timeline.on_toggle_play(self.play_button)
  835.     ^
  836. IndentationError: unexpected indent
  837. >>>
  838. >>>             # wait some time to emulate framerate choose by the user.
  839. >>>             time.sleep(1.0/self.timeline.framerate)
  840.   File "<input>", line 1
  841.     time.sleep(1.0/self.timeline.framerate)
  842.     ^
  843. IndentationError: unexpected indent
  844. >>>
  845. >>>             # call gtk event handler.
  846. >>>             while gtk.events_pending():
  847.   File "<input>", line 1
  848.     while gtk.events_pending():
  849.     ^
  850. IndentationError: unexpected indent
  851. >>>                 gtk.main_iteration()
  852.   File "<input>", line 1
  853.     gtk.main_iteration()
  854.     ^
  855. IndentationError: unexpected indent
  856. >>>
  857. >>>
  858. >>> class AnimFrame(gtk.EventBox):
  859. ...     """
  860. ...     A Frame representation for gtk.
  861. ...     """
  862. ...     def __init__(self,layer,width=100,height=120):
  863. ...         gtk.EventBox.__init__(self)
  864. ...         self.set_size_request(width,height)
  865. ...         #variables
  866. ...         self.thumbnail = None
  867. ...         self.label = None
  868. ...         self.layer = layer
  869. ...         self.fixed = False
  870. ...
  871. >>>         self._fix_button_images = []
  872.   File "<input>", line 1
  873.     self._fix_button_images = []
  874.     ^
  875. IndentationError: unexpected indent
  876. >>>         self._fix_button = None
  877.   File "<input>", line 1
  878.     self._fix_button = None
  879.     ^
  880. IndentationError: unexpected indent
  881. >>>         self._setup()
  882.   File "<input>", line 1
  883.     self._setup()
  884.     ^
  885. IndentationError: unexpected indent
  886. >>>
  887. >>>     def highlight(self,state):
  888.   File "<input>", line 1
  889.     def highlight(self,state):
  890.     ^
  891. IndentationError: unexpected indent
  892. >>>         if state:
  893.   File "<input>", line 1
  894.     if state:
  895.     ^
  896. IndentationError: unexpected indent
  897. >>>             self.set_state(gtk.STATE_SELECTED)
  898.   File "<input>", line 1
  899.     self.set_state(gtk.STATE_SELECTED)
  900.     ^
  901. IndentationError: unexpected indent
  902. >>>         else :
  903.   File "<input>", line 1
  904.     else :
  905.     ^
  906. IndentationError: unexpected indent
  907. >>>             self.set_state(gtk.STATE_NORMAL)
  908.   File "<input>", line 1
  909.     self.set_state(gtk.STATE_NORMAL)
  910.     ^
  911. IndentationError: unexpected indent
  912. >>>
  913. >>>     def on_toggle_fix(self,widget):
  914.   File "<input>", line 1
  915.     def on_toggle_fix(self,widget):
  916.     ^
  917. IndentationError: unexpected indent
  918. >>>         self.fixed = widget.get_active()
  919.   File "<input>", line 1
  920.     self.fixed = widget.get_active()
  921.     ^
  922. IndentationError: unexpected indent
  923. >>>         if widget.get_active():
  924.   File "<input>", line 1
  925.     if widget.get_active():
  926.     ^
  927. IndentationError: unexpected indent
  928. >>>             Utils.add_fixed_prefix(self.layer)
  929.   File "<input>", line 1
  930.     Utils.add_fixed_prefix(self.layer)
  931.     ^
  932. IndentationError: unexpected indent
  933. >>>             self._fix_button.set_image(self._fix_button_images[0])
  934.   File "<input>", line 1
  935.     self._fix_button.set_image(self._fix_button_images[0])
  936.     ^
  937. IndentationError: unexpected indent
  938. >>>         else:
  939.   File "<input>", line 1
  940.     else:
  941.     ^
  942. IndentationError: unexpected indent
  943. >>>             Utils.rem_fixed_prefix(self.layer)
  944.   File "<input>", line 1
  945.     Utils.rem_fixed_prefix(self.layer)
  946.     ^
  947. IndentationError: unexpected indent
  948. >>>             self._fix_button.set_image(self._fix_button_images[1])
  949.   File "<input>", line 1
  950.     self._fix_button.set_image(self._fix_button_images[1])
  951.     ^
  952. IndentationError: unexpected indent
  953. >>>
  954. >>>     def _setup(self):
  955.   File "<input>", line 1
  956.     def _setup(self):
  957.     ^
  958. IndentationError: unexpected indent
  959. >>>         self.thumbnail = gtk.Image()
  960.   File "<input>", line 1
  961.     self.thumbnail = gtk.Image()
  962.     ^
  963. IndentationError: unexpected indent
  964. >>>         self.label = gtk.Label(self.layer.name)
  965.   File "<input>", line 1
  966.     self.label = gtk.Label(self.layer.name)
  967.     ^
  968. IndentationError: unexpected indent
  969. >>>         # creating the fix button, to anchor background frames.
  970. >>>         icon_size = gtk.ICON_SIZE_MENU
  971.   File "<input>", line 1
  972.     icon_size = gtk.ICON_SIZE_MENU
  973.     ^
  974. IndentationError: unexpected indent
  975. >>>         self._fix_button = Utils.toggle_button_stock(gtk.STOCK_NO, icon_size)
  976.   File "<input>", line 1
  977.     self._fix_button = Utils.toggle_button_stock(gtk.STOCK_NO, icon_size)
  978.     ^
  979. IndentationError: unexpected indent
  980. >>>         self._fix_button.set_tooltip_text("toggle fixed visibility.")
  981.   File "<input>", line 1
  982.     self._fix_button.set_tooltip_text("toggle fixed visibility.")
  983.     ^
  984. IndentationError: unexpected indent
  985. >>>
  986. >>>         # update fixed variable
  987. >>>         self.fixed = Utils.is_frame_fixed(self.layer)
  988.   File "<input>", line 1
  989.     self.fixed = Utils.is_frame_fixed(self.layer)
  990.     ^
  991. IndentationError: unexpected indent
  992. >>>         #images
  993. >>>         self._fix_button_images = [gtk.Image(), gtk.Image()]
  994.   File "<input>", line 1
  995.     self._fix_button_images = [gtk.Image(), gtk.Image()]
  996.     ^
  997. IndentationError: unexpected indent
  998. >>>         self._fix_button_images[0].set_from_stock(gtk.STOCK_YES, icon_size)
  999.   File "<input>", line 1
  1000.     self._fix_button_images[0].set_from_stock(gtk.STOCK_YES, icon_size)
  1001.     ^
  1002. IndentationError: unexpected indent
  1003. >>>         self._fix_button_images[1].set_from_stock(gtk.STOCK_NO, icon_size)
  1004.   File "<input>", line 1
  1005.     self._fix_button_images[1].set_from_stock(gtk.STOCK_NO, icon_size)
  1006.     ^
  1007. IndentationError: unexpected indent
  1008. >>>
  1009. >>>         ## connect
  1010. >>>         self._fix_button.connect('clicked',self.on_toggle_fix)
  1011.   File "<input>", line 1
  1012.     self._fix_button.connect('clicked',self.on_toggle_fix)
  1013.     ^
  1014. IndentationError: unexpected indent
  1015. >>>
  1016. >>>         if self.fixed:
  1017.   File "<input>", line 1
  1018.     if self.fixed:
  1019.     ^
  1020. IndentationError: unexpected indent
  1021. >>>             self._fix_button.set_image(self._fix_button_images[0])
  1022.   File "<input>", line 1
  1023.     self._fix_button.set_image(self._fix_button_images[0])
  1024.     ^
  1025. IndentationError: unexpected indent
  1026. >>>             self._fix_button.set_active(True)
  1027.   File "<input>", line 1
  1028.     self._fix_button.set_active(True)
  1029.     ^
  1030. IndentationError: unexpected indent
  1031. >>>         else :
  1032.   File "<input>", line 1
  1033.     else :
  1034.     ^
  1035. IndentationError: unexpected indent
  1036. >>>             self._fix_button.set_image(self._fix_button_images[1])
  1037.   File "<input>", line 1
  1038.     self._fix_button.set_image(self._fix_button_images[1])
  1039.     ^
  1040. IndentationError: unexpected indent
  1041. >>>             self._fix_button.set_active(False)
  1042.   File "<input>", line 1
  1043.     self._fix_button.set_active(False)
  1044.     ^
  1045. IndentationError: unexpected indent
  1046. >>>
  1047. >>>         frame = gtk.Frame()
  1048.   File "<input>", line 1
  1049.     frame = gtk.Frame()
  1050.     ^
  1051. IndentationError: unexpected indent
  1052. >>>         layout = gtk.VBox()
  1053.   File "<input>", line 1
  1054.     layout = gtk.VBox()
  1055.     ^
  1056. IndentationError: unexpected indent
  1057. >>>         # add frame to this widget
  1058. >>>         self.add(frame)
  1059.   File "<input>", line 1
  1060.     self.add(frame)
  1061.     ^
  1062. IndentationError: unexpected indent
  1063. >>>
  1064. >>>         # add layout manager to the frame
  1065. >>>         frame.add(layout)
  1066.   File "<input>", line 1
  1067.     frame.add(layout)
  1068.     ^
  1069. IndentationError: unexpected indent
  1070. >>>
  1071. >>>         layout.pack_start(self.label)
  1072.   File "<input>", line 1
  1073.     layout.pack_start(self.label)
  1074.     ^
  1075. IndentationError: unexpected indent
  1076. >>>         layout.pack_start(self.thumbnail)
  1077.   File "<input>", line 1
  1078.     layout.pack_start(self.thumbnail)
  1079.     ^
  1080. IndentationError: unexpected indent
  1081. >>>         layout.pack_start(self._fix_button)
  1082.   File "<input>", line 1
  1083.     layout.pack_start(self._fix_button)
  1084.     ^
  1085. IndentationError: unexpected indent
  1086. >>>         self._get_thumb_image()
  1087.   File "<input>", line 1
  1088.     self._get_thumb_image()
  1089.     ^
  1090. IndentationError: unexpected indent
  1091. >>>
  1092. >>>     def _get_thumb_image(self):
  1093.   File "<input>", line 1
  1094.     def _get_thumb_image(self):
  1095.     ^
  1096. IndentationError: unexpected indent
  1097. >>>         """
  1098.  File "<input>", line 1
  1099.    """
  1100.     ^
  1101. IndentationError: unexpected indent
  1102. >>>         convert the pixel info returned by python into a gtk image to be
  1103.   File "<input>", line 1
  1104.     convert the pixel info returned by python into a gtk image to be
  1105.     ^
  1106. IndentationError: unexpected indent
  1107. >>>         showed.
  1108.   File "<input>", line 1
  1109.     showed.
  1110.     ^
  1111. IndentationError: unexpected indent
  1112. >>>         """
  1113.  File "<input>", line 1
  1114.    """
  1115.     ^
  1116. IndentationError: unexpected indent
  1117. >>>         width = 100
  1118.   File "<input>", line 1
  1119.     width = 100
  1120.     ^
  1121. IndentationError: unexpected indent
  1122. >>>         height = 100
  1123.   File "<input>", line 1
  1124.     height = 100
  1125.     ^
  1126. IndentationError: unexpected indent
  1127. >>>         image_data = pdb.gimp_drawable_thumbnail(self.layer,width,height)
  1128.   File "<input>", line 1
  1129.     image_data = pdb.gimp_drawable_thumbnail(self.layer,width,height)
  1130.     ^
  1131. IndentationError: unexpected indent
  1132. >>>
  1133. >>>         w,h,c,data = image_data[0],image_data[1],image_data[2],image_data[4]
  1134.   File "<input>", line 1
  1135.     w,h,c,data = image_data[0],image_data[1],image_data[2],image_data[4]
  1136.     ^
  1137. IndentationError: unexpected indent
  1138. >>>
  1139. >>>         # create a array of unsigned 8bit data.
  1140. >>>         image_array = array.array('B',data)
  1141.   File "<input>", line 1
  1142.     image_array = array.array('B',data)
  1143.     ^
  1144. IndentationError: unexpected indent
  1145. >>>
  1146. >>>         pixbuf = gtk.gdk.pixbuf_new_from_data(image_array,gtk.gdk.COLORSPACE_RGB,c>3,8,w,h,w*c)
  1147.   File "<input>", line 1
  1148.     pixbuf = gtk.gdk.pixbuf_new_from_data(image_array,gtk.gdk.COLORSPACE_RGB,c>3,8,w,h,w*c)
  1149.     ^
  1150. IndentationError: unexpected indent
  1151. >>>         self.thumbnail.set_from_pixbuf(pixbuf)
  1152.   File "<input>", line 1
  1153.     self.thumbnail.set_from_pixbuf(pixbuf)
  1154.     ^
  1155. IndentationError: unexpected indent
  1156. >>>
  1157. >>>     def update_layer_info(self):
  1158.   File "<input>", line 1
  1159.     def update_layer_info(self):
  1160.     ^
  1161. IndentationError: unexpected indent
  1162. >>>         self._get_thumb_image()
  1163.   File "<input>", line 1
  1164.     self._get_thumb_image()
  1165.     ^
  1166. IndentationError: unexpected indent
  1167. >>>
  1168. >>> class Timeline(gtk.Window):
  1169. ...     def __init__(self,title,image):
  1170. ...         gtk.Window.__init__(self,gtk.WINDOW_TOPLEVEL)
  1171. ...
  1172. >>>         self.set_title(title)
  1173.   File "<input>", line 1
  1174.     self.set_title(title)
  1175.     ^
  1176. IndentationError: unexpected indent
  1177. >>>         self.image = image
  1178.   File "<input>", line 1
  1179.     self.image = image
  1180.     ^
  1181. IndentationError: unexpected indent
  1182. >>>         self.frame_bar = None
  1183.   File "<input>", line 1
  1184.     self.frame_bar = None
  1185.     ^
  1186. IndentationError: unexpected indent
  1187. >>>         # variables
  1188. >>>         self.is_playing = False
  1189.   File "<input>", line 1
  1190.     self.is_playing = False
  1191.     ^
  1192. IndentationError: unexpected indent
  1193. >>>         self.is_replay = False
  1194.   File "<input>", line 1
  1195.     self.is_replay = False
  1196.     ^
  1197. IndentationError: unexpected indent
  1198. >>>         # modifiable widgets
  1199. >>>         self.play_button_images = []
  1200.   File "<input>", line 1
  1201.     self.play_button_images = []
  1202.     ^
  1203. IndentationError: unexpected indent
  1204. >>>         self.widgets_to_disable = [] # widgets to disable when playing
  1205.   File "<input>", line 1
  1206.     self.widgets_to_disable = [] # widgets to disable when playing
  1207.     ^
  1208. IndentationError: unexpected indent
  1209. >>>         self.play_bar = None
  1210.   File "<input>", line 1
  1211.     self.play_bar = None
  1212.     ^
  1213. IndentationError: unexpected indent
  1214. >>>        
  1215. >>>         # frames
  1216. >>>         self.frames = [] # all frame widgets
  1217.   File "<input>", line 1
  1218.     self.frames = [] # all frame widgets
  1219.     ^
  1220. IndentationError: unexpected indent
  1221. >>>         self.active = None  # active frame / gimp layer
  1222.   File "<input>", line 1
  1223.     self.active = None  # active frame / gimp layer
  1224.     ^
  1225. IndentationError: unexpected indent
  1226. >>>         self.before_play = None # active frame before play
  1227.   File "<input>", line 1
  1228.     self.before_play = None # active frame before play
  1229.     ^
  1230. IndentationError: unexpected indent
  1231. >>>
  1232. >>>         self.framerate = 30
  1233.   File "<input>", line 1
  1234.     self.framerate = 30
  1235.     ^
  1236. IndentationError: unexpected indent
  1237. >>>
  1238. >>>         # new frame.
  1239. >>>         self.new_layer_type = TRANSPARENT_FILL
  1240.   File "<input>", line 1
  1241.     self.new_layer_type = TRANSPARENT_FILL
  1242.     ^
  1243. IndentationError: unexpected indent
  1244. >>>
  1245. >>>         # onionskin variables
  1246. >>>         self.oskin = False
  1247.   File "<input>", line 1
  1248.     self.oskin = False
  1249.     ^
  1250. IndentationError: unexpected indent
  1251. >>>         self.oskin_depth = 2
  1252.   File "<input>", line 1
  1253.     self.oskin_depth = 2
  1254.     ^
  1255. IndentationError: unexpected indent
  1256. >>>         self.oskin_backward = True
  1257.   File "<input>", line 1
  1258.     self.oskin_backward = True
  1259.     ^
  1260. IndentationError: unexpected indent
  1261. >>>         self.oskin_forward = False
  1262.   File "<input>", line 1
  1263.     self.oskin_forward = False
  1264.     ^
  1265. IndentationError: unexpected indent
  1266. >>>         self.oskin_max_opacity = OSKIN_MAX_OPACITY
  1267.   File "<input>", line 1
  1268.     self.oskin_max_opacity = OSKIN_MAX_OPACITY
  1269.     ^
  1270. IndentationError: unexpected indent
  1271. >>>         self.oskin_onplay= True
  1272.   File "<input>", line 1
  1273.     self.oskin_onplay= True
  1274.     ^
  1275. IndentationError: unexpected indent
  1276. >>>
  1277. >>>         self.player = None
  1278.   File "<input>", line 1
  1279.     self.player = None
  1280.     ^
  1281. IndentationError: unexpected indent
  1282. >>>
  1283. >>>         # gtk window
  1284. >>>         self.win_pos = (20,20)
  1285.   File "<input>", line 1
  1286.     self.win_pos = (20,20)
  1287.     ^
  1288. IndentationError: unexpected indent
  1289. >>>         self.win_size = (200,200)
  1290.   File "<input>", line 1
  1291.     self.win_size = (200,200)
  1292.     ^
  1293. IndentationError: unexpected indent
  1294. >>>         # create all widgets
  1295. >>>         self._setup_widgets()
  1296.   File "<input>", line 1
  1297.     self._setup_widgets()
  1298.     ^
  1299. IndentationError: unexpected indent
  1300. >>>     def undo(self, state):
  1301.   File "<input>", line 1
  1302.     def undo(self, state):
  1303.     ^
  1304. IndentationError: unexpected indent
  1305. >>>         if state:
  1306.   File "<input>", line 1
  1307.     if state:
  1308.     ^
  1309. IndentationError: unexpected indent
  1310. >>>             self.image.undo_thaw()
  1311.   File "<input>", line 1
  1312.     self.image.undo_thaw()
  1313.     ^
  1314. IndentationError: unexpected indent
  1315. >>>         else:
  1316.   File "<input>", line 1
  1317.     else:
  1318.     ^
  1319. IndentationError: unexpected indent
  1320. >>>             self.image.undo_freeze()
  1321.   File "<input>", line 1
  1322.     self.image.undo_freeze()
  1323.     ^
  1324. IndentationError: unexpected indent
  1325. >>>
  1326. >>>     def destroy(self,widget):
  1327.   File "<input>", line 1
  1328.     def destroy(self,widget):
  1329.     ^
  1330. IndentationError: unexpected indent
  1331. >>>         # if is closing and still playing try to stop and send a message with info.
  1332. >>>         if self.is_playing:
  1333.   File "<input>", line 1
  1334.     if self.is_playing:
  1335.     ^
  1336. IndentationError: unexpected indent
  1337. >>>             self.is_playing = False
  1338.   File "<input>", line 1
  1339.     self.is_playing = False
  1340.     ^
  1341. IndentationError: unexpected indent
  1342. >>>             gimp.message("Please do not close the image with FAnim playing the animation.")
  1343.   File "<input>", line 1
  1344.     gimp.message("Please do not close the image with FAnim playing the animation.")
  1345.     ^
  1346. IndentationError: unexpected indent
  1347. >>>         if widget != False:# for when this function is called without valid image variable.
  1348.   File "<input>", line 1
  1349.     if widget != False:# for when this function is called without valid image variable.
  1350.     ^
  1351. IndentationError: unexpected indent
  1352. >>>             # return to the normal layers order.
  1353. >>>             pdb.script_fu_reverse_layers(self.image,None)
  1354.   File "<input>", line 1
  1355.     pdb.script_fu_reverse_layers(self.image,None)
  1356.     ^
  1357. IndentationError: unexpected indent
  1358. >>>             self.on_goto(None,START)
  1359.   File "<input>", line 1
  1360.     self.on_goto(None,START)
  1361.     ^
  1362. IndentationError: unexpected indent
  1363. >>>
  1364. >>>         #save the settings before quit.
  1365. >>>         Utils.save_conffile(CONF_FILENAME,self.get_settings())
  1366.   File "<input>", line 1
  1367.     Utils.save_conffile(CONF_FILENAME,self.get_settings())
  1368.     ^
  1369. IndentationError: unexpected indent
  1370. >>>
  1371. >>>         gtk.main_quit()
  1372.   File "<input>", line 1
  1373.     gtk.main_quit()
  1374.     ^
  1375. IndentationError: unexpected indent
  1376. >>>
  1377. >>>     def start(self):
  1378.   File "<input>", line 1
  1379.     def start(self):
  1380.     ^
  1381. IndentationError: unexpected indent
  1382. >>>         gtk.main()
  1383.   File "<input>", line 1
  1384.     gtk.main()
  1385.     ^
  1386. IndentationError: unexpected indent
  1387. >>>
  1388. >>>     def _get_theme_gtkrc(self,themerc):
  1389.   File "<input>", line 1
  1390.     def _get_theme_gtkrc(self,themerc):
  1391.     ^
  1392. IndentationError: unexpected indent
  1393. >>>         rcpath = ""
  1394.   File "<input>", line 1
  1395.     rcpath = ""
  1396.     ^
  1397. IndentationError: unexpected indent
  1398. >>>         with  open(themerc,'r') as trc:
  1399.   File "<input>", line 1
  1400.     with  open(themerc,'r') as trc:
  1401.     ^
  1402. IndentationError: unexpected indent
  1403. >>>             for l in trc.readlines():
  1404.   File "<input>", line 1
  1405.     for l in trc.readlines():
  1406.     ^
  1407. IndentationError: unexpected indent
  1408. >>>                 if l[:7] == "include":
  1409.   File "<input>", line 1
  1410.     if l[:7] == "include":
  1411.     ^
  1412. IndentationError: unexpected indent
  1413. >>>                     rcpath = l[9:-2]
  1414.   File "<input>", line 1
  1415.     rcpath = l[9:-2]
  1416.     ^
  1417. IndentationError: unexpected indent
  1418. >>>                     break
  1419.   File "<input>", line 1
  1420.     break
  1421.     ^
  1422. IndentationError: unexpected indent
  1423. >>>         return rcpath
  1424.   File "<input>", line 1
  1425.     return rcpath
  1426.     ^
  1427. IndentationError: unexpected indent
  1428. >>>
  1429. >>>     def on_window_resize(self,*args):
  1430.   File "<input>", line 1
  1431.     def on_window_resize(self,*args):
  1432.     ^
  1433. IndentationError: unexpected indent
  1434. >>>         # update the window position  to save later on.
  1435. >>>         self.win_pos = self.get_position()
  1436.   File "<input>", line 1
  1437.     self.win_pos = self.get_position()
  1438.     ^
  1439. IndentationError: unexpected indent
  1440. >>>
  1441. >>>     def _setup_widgets(self):
  1442.   File "<input>", line 1
  1443.     def _setup_widgets(self):
  1444.     ^
  1445. IndentationError: unexpected indent
  1446. >>>         """
  1447.  File "<input>", line 1
  1448.    """
  1449.     ^
  1450. IndentationError: unexpected indent
  1451. >>>         create all the window staticaly placed widgets.
  1452.   File "<input>", line 1
  1453.     create all the window staticaly placed widgets.
  1454.     ^
  1455. IndentationError: unexpected indent
  1456. >>>         """
  1457.  File "<input>", line 1
  1458.    """
  1459.     ^
  1460. IndentationError: unexpected indent
  1461. >>>         #load the saved setting before start.
  1462. >>>         self.set_settings(Utils.load_conffile(CONF_FILENAME))
  1463.   File "<input>", line 1
  1464.     self.set_settings(Utils.load_conffile(CONF_FILENAME))
  1465.     ^
  1466. IndentationError: unexpected indent
  1467. >>>
  1468. >>>         # basic window definitions
  1469. >>>         self.connect("destroy",self.destroy)
  1470.   File "<input>", line 1
  1471.     self.connect("destroy",self.destroy)
  1472.     ^
  1473. IndentationError: unexpected indent
  1474. >>>         self.connect("focus_in_event",self.on_window_focus)
  1475.   File "<input>", line 1
  1476.     self.connect("focus_in_event",self.on_window_focus)
  1477.     ^
  1478. IndentationError: unexpected indent
  1479. >>>         self.connect("configure_event",self.on_window_resize)
  1480.   File "<input>", line 1
  1481.     self.connect("configure_event",self.on_window_resize)
  1482.     ^
  1483. IndentationError: unexpected indent
  1484. >>>
  1485. >>>         self.set_default_size(self.win_size[0],self.win_size[1])
  1486.   File "<input>", line 1
  1487.     self.set_default_size(self.win_size[0],self.win_size[1])
  1488.     ^
  1489. IndentationError: unexpected indent
  1490. >>>         self.set_keep_above(True)
  1491.   File "<input>", line 1
  1492.     self.set_keep_above(True)
  1493.     ^
  1494. IndentationError: unexpected indent
  1495. >>>        
  1496. >>>         #self.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
  1497. >>>         self.move(self.win_pos[0],self.win_pos[1])
  1498.   File "<input>", line 1
  1499.     self.move(self.win_pos[0],self.win_pos[1])
  1500.     ^
  1501. IndentationError: unexpected indent
  1502. >>>
  1503. >>>         # parse gimp theme gtkrc
  1504. >>>         gtkrc_path  = self._get_theme_gtkrc(gimp.personal_rc_file('themerc'))
  1505.   File "<input>", line 1
  1506.     gtkrc_path  = self._get_theme_gtkrc(gimp.personal_rc_file('themerc'))
  1507.     ^
  1508. IndentationError: unexpected indent
  1509. >>>
  1510. >>>         if  os.name != 'nt':# try apply the theme by parse a gtkrc file if is not a windows system.
  1511.   File "<input>", line 1
  1512.     if  os.name != 'nt':# try apply the theme by parse a gtkrc file if is not a windows system.
  1513.     ^
  1514. IndentationError: unexpected indent
  1515. >>>             gtk.rc_parse(gtkrc_path)
  1516.   File "<input>", line 1
  1517.     gtk.rc_parse(gtkrc_path)
  1518.     ^
  1519. IndentationError: unexpected indent
  1520. >>>         else: # if error occur them parse the file in another way.
  1521.   File "<input>", line 1
  1522.     else: # if error occur them parse the file in another way.
  1523.     ^
  1524. IndentationError: unexpected indent
  1525. >>>             gtk.rc_add_default_file(gtkrc_path)
  1526.   File "<input>", line 1
  1527.     gtk.rc_add_default_file(gtkrc_path)
  1528.     ^
  1529. IndentationError: unexpected indent
  1530. >>>             gtk.rc_reparse_all()
  1531.   File "<input>", line 1
  1532.     gtk.rc_reparse_all()
  1533.     ^
  1534. IndentationError: unexpected indent
  1535. >>>
  1536. >>>         # start creating basic layout
  1537. >>>         base = gtk.VBox()
  1538.   File "<input>", line 1
  1539.     base = gtk.VBox()
  1540.     ^
  1541. IndentationError: unexpected indent
  1542. >>>
  1543. >>>         # commands bar widgets
  1544. >>>         cbar = gtk.HBox()
  1545.   File "<input>", line 1
  1546.     cbar = gtk.HBox()
  1547.     ^
  1548. IndentationError: unexpected indent
  1549. >>>         cbar.pack_start(self._setup_playbackbar(),False,False,10)
  1550.   File "<input>", line 1
  1551.     cbar.pack_start(self._setup_playbackbar(),False,False,10)
  1552.     ^
  1553. IndentationError: unexpected indent
  1554. >>>         cbar.pack_start(self._setup_editbar(),False,False,10)
  1555.   File "<input>", line 1
  1556.     cbar.pack_start(self._setup_editbar(),False,False,10)
  1557.     ^
  1558. IndentationError: unexpected indent
  1559. >>>         cbar.pack_start(self._setup_onionskin(),False,False,10)
  1560.   File "<input>", line 1
  1561.     cbar.pack_start(self._setup_onionskin(),False,False,10)
  1562.     ^
  1563. IndentationError: unexpected indent
  1564. >>>         cbar.pack_start(self._setup_config(),False,False,10)
  1565.   File "<input>", line 1
  1566.     cbar.pack_start(self._setup_config(),False,False,10)
  1567.     ^
  1568. IndentationError: unexpected indent
  1569. >>>         cbar.pack_start(self._setup_generalbar(),False,False,10)
  1570.   File "<input>", line 1
  1571.     cbar.pack_start(self._setup_generalbar(),False,False,10)
  1572.     ^
  1573. IndentationError: unexpected indent
  1574. >>>
  1575. >>>         # frames bar widgets
  1576. >>>         self.frame_bar = gtk.HBox()
  1577.   File "<input>", line 1
  1578.     self.frame_bar = gtk.HBox()
  1579.     ^
  1580. IndentationError: unexpected indent
  1581. >>>         scroll_window = gtk.ScrolledWindow()
  1582.   File "<input>", line 1
  1583.     scroll_window = gtk.ScrolledWindow()
  1584.     ^
  1585. IndentationError: unexpected indent
  1586. >>>         scroll_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC)
  1587.   File "<input>", line 1
  1588.     scroll_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC)
  1589.     ^
  1590. IndentationError: unexpected indent
  1591. >>>         scroll_window.add_with_viewport(self.frame_bar)
  1592.   File "<input>", line 1
  1593.     scroll_window.add_with_viewport(self.frame_bar)
  1594.     ^
  1595. IndentationError: unexpected indent
  1596. >>>         scroll_window.set_size_request(-1,140)
  1597.   File "<input>", line 1
  1598.     scroll_window.set_size_request(-1,140)
  1599.     ^
  1600. IndentationError: unexpected indent
  1601. >>>
  1602. >>>         # mount the widgets together
  1603. >>>         base.pack_start(cbar,False,False,0)
  1604.   File "<input>", line 1
  1605.     base.pack_start(cbar,False,False,0)
  1606.     ^
  1607. IndentationError: unexpected indent
  1608. >>>         base.pack_start(scroll_window,True,True,0)
  1609.   File "<input>", line 1
  1610.     base.pack_start(scroll_window,True,True,0)
  1611.     ^
  1612. IndentationError: unexpected indent
  1613. >>>         self.add(base)
  1614.   File "<input>", line 1
  1615.     self.add(base)
  1616.     ^
  1617. IndentationError: unexpected indent
  1618. >>>        
  1619. >>>         # invert the image so onionskin can be used propely, with backward frames be
  1620. >>>         # above the actual frame, sinse GIMP upper layers are firstly visible they cant
  1621. >>>         # be backward frames.
  1622. >>>         pdb.script_fu_reverse_layers(self.image,None)
  1623.   File "<input>", line 1
  1624.     pdb.script_fu_reverse_layers(self.image,None)
  1625.     ^
  1626. IndentationError: unexpected indent
  1627. >>>         # scan all layers
  1628. >>>         self._scan_image_layers()
  1629.   File "<input>", line 1
  1630.     self._scan_image_layers()
  1631.     ^
  1632. IndentationError: unexpected indent
  1633. >>>         self.active = 0
  1634.   File "<input>", line 1
  1635.     self.active = 0
  1636.     ^
  1637. IndentationError: unexpected indent
  1638. >>>         self.on_goto(None,GIMP_ACTIVE)
  1639.   File "<input>", line 1
  1640.     self.on_goto(None,GIMP_ACTIVE)
  1641.     ^
  1642. IndentationError: unexpected indent
  1643. >>>
  1644. >>>         # finalize showing all widgets
  1645. >>>         self.show_all()
  1646.   File "<input>", line 1
  1647.     self.show_all()
  1648.     ^
  1649. IndentationError: unexpected indent
  1650. >>>
  1651. >>>     def _scan_image_layers(self):
  1652.   File "<input>", line 1
  1653.     def _scan_image_layers(self):
  1654.     ^
  1655. IndentationError: unexpected indent
  1656. >>>         """
  1657.  File "<input>", line 1
  1658.    """
  1659.     ^
  1660. IndentationError: unexpected indent
  1661. >>>         If exists frames this function destroys all, after that the image layers
  1662.   File "<input>", line 1
  1663.     If exists frames this function destroys all, after that the image layers
  1664.     ^
  1665. IndentationError: unexpected indent
  1666. >>>         is scanned and the frames are recreated.
  1667.   File "<input>", line 1
  1668.     is scanned and the frames are recreated.
  1669.     ^
  1670. IndentationError: unexpected indent
  1671. >>>         """
  1672.  File "<input>", line 1
  1673.    """
  1674.     ^
  1675. IndentationError: unexpected indent
  1676. >>>         self.undo(False)
  1677.   File "<input>", line 1
  1678.     self.undo(False)
  1679.     ^
  1680. IndentationError: unexpected indent
  1681. >>>
  1682. >>>         layers = self.image.layers
  1683.   File "<input>", line 1
  1684.     layers = self.image.layers
  1685.     ^
  1686. IndentationError: unexpected indent
  1687. >>>
  1688. >>>         if self.frames:
  1689.   File "<input>", line 1
  1690.     if self.frames:
  1691.     ^
  1692. IndentationError: unexpected indent
  1693. >>>             for frame in self.frames:
  1694.   File "<input>", line 1
  1695.     for frame in self.frames:
  1696.     ^
  1697. IndentationError: unexpected indent
  1698. >>>                 self.frame_bar.remove(frame)
  1699.   File "<input>", line 1
  1700.     self.frame_bar.remove(frame)
  1701.     ^
  1702. IndentationError: unexpected indent
  1703. >>>                 frame.destroy()
  1704.   File "<input>", line 1
  1705.     frame.destroy()
  1706.     ^
  1707. IndentationError: unexpected indent
  1708. >>>             self.frames = []
  1709.   File "<input>", line 1
  1710.     self.frames = []
  1711.     ^
  1712. IndentationError: unexpected indent
  1713. >>>
  1714. >>>         # here we get back the layers orders just in the timeline so the user can have
  1715. >>>         # a right interface.
  1716. >>>         for layer in reversed(layers):
  1717.   File "<input>", line 1
  1718.     for layer in reversed(layers):
  1719.     ^
  1720. IndentationError: unexpected indent
  1721. >>>             # start properties
  1722. >>>             layer.mode = NORMAL_MODE
  1723.   File "<input>", line 1
  1724.     layer.mode = NORMAL_MODE
  1725.     ^
  1726. IndentationError: unexpected indent
  1727. >>>             layer.opacity = 100.0
  1728.   File "<input>", line 1
  1729.     layer.opacity = 100.0
  1730.     ^
  1731. IndentationError: unexpected indent
  1732. >>>
  1733. >>>             # creating frame
  1734. >>>             f = AnimFrame(layer)
  1735.   File "<input>", line 1
  1736.     f = AnimFrame(layer)
  1737.     ^
  1738. IndentationError: unexpected indent
  1739. >>>             f.connect("button_press_event",self.on_click_goto)
  1740.   File "<input>", line 1
  1741.     f.connect("button_press_event",self.on_click_goto)
  1742.     ^
  1743. IndentationError: unexpected indent
  1744. >>>             self.frame_bar.pack_start(f,False,True,2)
  1745.   File "<input>", line 1
  1746.     self.frame_bar.pack_start(f,False,True,2)
  1747.     ^
  1748. IndentationError: unexpected indent
  1749. >>>             self.frames.append(f)
  1750.   File "<input>", line 1
  1751.     self.frames.append(f)
  1752.     ^
  1753. IndentationError: unexpected indent
  1754. >>>             f.show_all()
  1755.   File "<input>", line 1
  1756.     f.show_all()
  1757.     ^
  1758. IndentationError: unexpected indent
  1759. >>>         self.undo(True)
  1760.   File "<input>", line 1
  1761.     self.undo(True)
  1762.     ^
  1763. IndentationError: unexpected indent
  1764. >>>
  1765. >>>     def _setup_playbackbar(self):
  1766.   File "<input>", line 1
  1767.     def _setup_playbackbar(self):
  1768.     ^
  1769. IndentationError: unexpected indent
  1770. >>>         playback_bar = gtk.HBox()
  1771.   File "<input>", line 1
  1772.     playback_bar = gtk.HBox()
  1773.     ^
  1774. IndentationError: unexpected indent
  1775. >>>         button_size = 30
  1776.   File "<input>", line 1
  1777.     button_size = 30
  1778.     ^
  1779. IndentationError: unexpected indent
  1780. >>>         stock_size = gtk.ICON_SIZE_BUTTON
  1781.   File "<input>", line 1
  1782.     stock_size = gtk.ICON_SIZE_BUTTON
  1783.     ^
  1784. IndentationError: unexpected indent
  1785. >>>
  1786. >>>         # play button
  1787. >>>         ## append the images to a list to be used later on
  1788. >>>         self.play_button_images = [gtk.Image(), gtk.Image()]
  1789.   File "<input>", line 1
  1790.     self.play_button_images = [gtk.Image(), gtk.Image()]
  1791.     ^
  1792. IndentationError: unexpected indent
  1793. >>>         self.play_button_images[0].set_from_stock(gtk.STOCK_MEDIA_PLAY,stock_size)
  1794.   File "<input>", line 1
  1795.     self.play_button_images[0].set_from_stock(gtk.STOCK_MEDIA_PLAY,stock_size)
  1796.     ^
  1797. IndentationError: unexpected indent
  1798. >>>         self.play_button_images[1].set_from_stock(gtk.STOCK_MEDIA_PAUSE,stock_size)
  1799.   File "<input>", line 1
  1800.     self.play_button_images[1].set_from_stock(gtk.STOCK_MEDIA_PAUSE,stock_size)
  1801.     ^
  1802. IndentationError: unexpected indent
  1803. >>>
  1804. >>>         ## button
  1805. >>>         b_play = gtk.Button()
  1806.   File "<input>", line 1
  1807.     b_play = gtk.Button()
  1808.     ^
  1809. IndentationError: unexpected indent
  1810. >>>         b_play.set_image(self.play_button_images[0])
  1811.   File "<input>", line 1
  1812.     b_play.set_image(self.play_button_images[0])
  1813.     ^
  1814. IndentationError: unexpected indent
  1815. >>>         b_play.set_size_request(button_size,button_size)
  1816.   File "<input>", line 1
  1817.     b_play.set_size_request(button_size,button_size)
  1818.     ^
  1819. IndentationError: unexpected indent
  1820. >>>
  1821. >>>         b_tostart = Utils.button_stock(gtk.STOCK_MEDIA_PREVIOUS,stock_size)
  1822.   File "<input>", line 1
  1823.     b_tostart = Utils.button_stock(gtk.STOCK_MEDIA_PREVIOUS,stock_size)
  1824.     ^
  1825. IndentationError: unexpected indent
  1826. >>>         b_toend = Utils.button_stock(gtk.STOCK_MEDIA_NEXT,stock_size)
  1827.   File "<input>", line 1
  1828.     b_toend = Utils.button_stock(gtk.STOCK_MEDIA_NEXT,stock_size)
  1829.     ^
  1830. IndentationError: unexpected indent
  1831. >>>         b_prev = Utils.button_stock(gtk.STOCK_MEDIA_REWIND,stock_size)
  1832.   File "<input>", line 1
  1833.     b_prev = Utils.button_stock(gtk.STOCK_MEDIA_REWIND,stock_size)
  1834.     ^
  1835. IndentationError: unexpected indent
  1836. >>>         b_next = Utils.button_stock(gtk.STOCK_MEDIA_FORWARD,stock_size)
  1837.   File "<input>", line 1
  1838.     b_next = Utils.button_stock(gtk.STOCK_MEDIA_FORWARD,stock_size)
  1839.     ^
  1840. IndentationError: unexpected indent
  1841. >>>
  1842. >>>         b_repeat = Utils.toggle_button_stock(gtk.STOCK_REFRESH,stock_size)
  1843.   File "<input>", line 1
  1844.     b_repeat = Utils.toggle_button_stock(gtk.STOCK_REFRESH,stock_size)
  1845.     ^
  1846. IndentationError: unexpected indent
  1847. >>>
  1848. >>>         # connecting the button with callback
  1849. >>>         b_play.connect('clicked',self.on_toggle_play)
  1850.   File "<input>", line 1
  1851.     b_play.connect('clicked',self.on_toggle_play)
  1852.     ^
  1853. IndentationError: unexpected indent
  1854. >>>         b_repeat.connect('toggled',self.on_replay)
  1855.   File "<input>", line 1
  1856.     b_repeat.connect('toggled',self.on_replay)
  1857.     ^
  1858. IndentationError: unexpected indent
  1859. >>>
  1860. >>>         b_next.connect('clicked',self.on_goto,NEXT,True)
  1861.   File "<input>", line 1
  1862.     b_next.connect('clicked',self.on_goto,NEXT,True)
  1863.     ^
  1864. IndentationError: unexpected indent
  1865. >>>         b_prev.connect('clicked',self.on_goto,PREV,True)
  1866.   File "<input>", line 1
  1867.     b_prev.connect('clicked',self.on_goto,PREV,True)
  1868.     ^
  1869. IndentationError: unexpected indent
  1870. >>>         b_toend.connect('clicked',self.on_goto,END,True)
  1871.   File "<input>", line 1
  1872.     b_toend.connect('clicked',self.on_goto,END,True)
  1873.     ^
  1874. IndentationError: unexpected indent
  1875. >>>         b_tostart.connect('clicked',self.on_goto,START,True)
  1876.   File "<input>", line 1
  1877.     b_tostart.connect('clicked',self.on_goto,START,True)
  1878.     ^
  1879. IndentationError: unexpected indent
  1880. >>>
  1881. >>>
  1882. >>>         # add to the disable on play list
  1883. >>>         w = [b_repeat,b_prev,b_next,b_tostart,b_toend]
  1884.   File "<input>", line 1
  1885.     w = [b_repeat,b_prev,b_next,b_tostart,b_toend]
  1886.     ^
  1887. IndentationError: unexpected indent
  1888. >>>         map(lambda x: self.widgets_to_disable.append(x),w)
  1889.   File "<input>", line 1
  1890.     map(lambda x: self.widgets_to_disable.append(x),w)
  1891.     ^
  1892. IndentationError: unexpected indent
  1893. >>>         self.play_bar = playback_bar
  1894.   File "<input>", line 1
  1895.     self.play_bar = playback_bar
  1896.     ^
  1897. IndentationError: unexpected indent
  1898. >>>
  1899. >>>         # set the tooltips
  1900. >>>         b_play.set_tooltip_text("Animation play/pause")
  1901.   File "<input>", line 1
  1902.     b_play.set_tooltip_text("Animation play/pause")
  1903.     ^
  1904. IndentationError: unexpected indent
  1905. >>>         b_repeat.set_tooltip_text("Animation replay active/deactive")
  1906.   File "<input>", line 1
  1907.     b_repeat.set_tooltip_text("Animation replay active/deactive")
  1908.     ^
  1909. IndentationError: unexpected indent
  1910. >>>         b_prev.set_tooltip_text("To the previous frame")
  1911.   File "<input>", line 1
  1912.     b_prev.set_tooltip_text("To the previous frame")
  1913.     ^
  1914. IndentationError: unexpected indent
  1915. >>>         b_next.set_tooltip_text("To the next frame")
  1916.   File "<input>", line 1
  1917.     b_next.set_tooltip_text("To the next frame")
  1918.     ^
  1919. IndentationError: unexpected indent
  1920. >>>         b_tostart.set_tooltip_text("To the start frame")
  1921.   File "<input>", line 1
  1922.     b_tostart.set_tooltip_text("To the start frame")
  1923.     ^
  1924. IndentationError: unexpected indent
  1925. >>>         b_toend.set_tooltip_text("To the end frame")
  1926.   File "<input>", line 1
  1927.     b_toend.set_tooltip_text("To the end frame")
  1928.     ^
  1929. IndentationError: unexpected indent
  1930. >>>
  1931. >>>         # packing everything in gbar
  1932. >>>         w = [b_tostart, b_prev, b_play, b_next, b_toend, b_repeat]
  1933.   File "<input>", line 1
  1934.     w = [b_tostart, b_prev, b_play, b_next, b_toend, b_repeat]
  1935.     ^
  1936. IndentationError: unexpected indent
  1937. >>>         map(lambda x: playback_bar.pack_start(x,False,False,0), w)
  1938.   File "<input>", line 1
  1939.     map(lambda x: playback_bar.pack_start(x,False,False,0), w)
  1940.     ^
  1941. IndentationError: unexpected indent
  1942. >>>         return playback_bar
  1943.   File "<input>", line 1
  1944.     return playback_bar
  1945.     ^
  1946. IndentationError: unexpected indent
  1947. >>>
  1948. >>>     def _setup_editbar(self):
  1949.   File "<input>", line 1
  1950.     def _setup_editbar(self):
  1951.     ^
  1952. IndentationError: unexpected indent
  1953. >>>         stock_size = gtk.ICON_SIZE_BUTTON
  1954.   File "<input>", line 1
  1955.     stock_size = gtk.ICON_SIZE_BUTTON
  1956.     ^
  1957. IndentationError: unexpected indent
  1958. >>>         edit_bar = gtk.HBox()
  1959.   File "<input>", line 1
  1960.     edit_bar = gtk.HBox()
  1961.     ^
  1962. IndentationError: unexpected indent
  1963. >>>        
  1964. >>>         b_back = Utils.button_stock(gtk.STOCK_GO_BACK,stock_size)
  1965.   File "<input>", line 1
  1966.     b_back = Utils.button_stock(gtk.STOCK_GO_BACK,stock_size)
  1967.     ^
  1968. IndentationError: unexpected indent
  1969. >>>         b_forward = Utils.button_stock(gtk.STOCK_GO_FORWARD,stock_size)
  1970.   File "<input>", line 1
  1971.     b_forward = Utils.button_stock(gtk.STOCK_GO_FORWARD,stock_size)
  1972.     ^
  1973. IndentationError: unexpected indent
  1974. >>>         b_rem = Utils.button_stock(gtk.STOCK_REMOVE,stock_size)
  1975.   File "<input>", line 1
  1976.     b_rem = Utils.button_stock(gtk.STOCK_REMOVE,stock_size)
  1977.     ^
  1978. IndentationError: unexpected indent
  1979. >>>         b_add = Utils.button_stock(gtk.STOCK_ADD,stock_size)
  1980.   File "<input>", line 1
  1981.     b_add = Utils.button_stock(gtk.STOCK_ADD,stock_size)
  1982.     ^
  1983. IndentationError: unexpected indent
  1984. >>>         b_copy = Utils.button_stock(gtk.STOCK_COPY,stock_size)
  1985.   File "<input>", line 1
  1986.     b_copy = Utils.button_stock(gtk.STOCK_COPY,stock_size)
  1987.     ^
  1988. IndentationError: unexpected indent
  1989. >>>
  1990. >>>         # add to the disable on play list
  1991. >>>         w = [b_back,b_forward,b_rem,b_add,b_copy]
  1992.   File "<input>", line 1
  1993.     w = [b_back,b_forward,b_rem,b_add,b_copy]
  1994.     ^
  1995. IndentationError: unexpected indent
  1996. >>>         map(lambda x: self.widgets_to_disable.append(x),w)
  1997.   File "<input>", line 1
  1998.     map(lambda x: self.widgets_to_disable.append(x),w)
  1999.     ^
  2000. IndentationError: unexpected indent
  2001. >>>
  2002. >>>         # connect callbacks:
  2003. >>>         b_rem.connect("clicked",self.on_remove) # remove frame
  2004.   File "<input>", line 1
  2005.     b_rem.connect("clicked",self.on_remove) # remove frame
  2006.     ^
  2007. IndentationError: unexpected indent
  2008. >>>         b_add.connect("clicked",self.on_add) # add frame
  2009.   File "<input>", line 1
  2010.     b_add.connect("clicked",self.on_add) # add frame
  2011.     ^
  2012. IndentationError: unexpected indent
  2013. >>>         b_copy.connect("clicked",self.on_add,True) # add frame
  2014.   File "<input>", line 1
  2015.     b_copy.connect("clicked",self.on_add,True) # add frame
  2016.     ^
  2017. IndentationError: unexpected indent
  2018. >>>         b_back.connect("clicked",self.on_move,PREV)
  2019.   File "<input>", line 1
  2020.     b_back.connect("clicked",self.on_move,PREV)
  2021.     ^
  2022. IndentationError: unexpected indent
  2023. >>>         b_forward.connect("clicked",self.on_move,NEXT)
  2024.   File "<input>", line 1
  2025.     b_forward.connect("clicked",self.on_move,NEXT)
  2026.     ^
  2027. IndentationError: unexpected indent
  2028. >>>
  2029. >>>         # tooltips
  2030. >>>         b_rem.set_tooltip_text("Remove a frame/layer")
  2031.   File "<input>", line 1
  2032.     b_rem.set_tooltip_text("Remove a frame/layer")
  2033.     ^
  2034. IndentationError: unexpected indent
  2035. >>>         b_add.set_tooltip_text("Add a frame/layer")
  2036.   File "<input>", line 1
  2037.     b_add.set_tooltip_text("Add a frame/layer")
  2038.     ^
  2039. IndentationError: unexpected indent
  2040. >>>         b_copy.set_tooltip_text("Duplicate the atual selected frame")
  2041.   File "<input>", line 1
  2042.     b_copy.set_tooltip_text("Duplicate the atual selected frame")
  2043.     ^
  2044. IndentationError: unexpected indent
  2045. >>>         b_back.set_tooltip_text("Move the atual selected frame backward")
  2046.   File "<input>", line 1
  2047.     b_back.set_tooltip_text("Move the atual selected frame backward")
  2048.     ^
  2049. IndentationError: unexpected indent
  2050. >>>         b_forward.set_tooltip_text("Move the atual selected frame forward")
  2051.   File "<input>", line 1
  2052.     b_forward.set_tooltip_text("Move the atual selected frame forward")
  2053.     ^
  2054. IndentationError: unexpected indent
  2055. >>>
  2056. >>>         # packing everything in gbar
  2057. >>>         map(lambda x: edit_bar.pack_start(x,False,False,0),w)
  2058.   File "<input>", line 1
  2059.     map(lambda x: edit_bar.pack_start(x,False,False,0),w)
  2060.     ^
  2061. IndentationError: unexpected indent
  2062. >>>         return edit_bar
  2063.   File "<input>", line 1
  2064.     return edit_bar
  2065.     ^
  2066. IndentationError: unexpected indent
  2067. >>>
  2068. >>>     def _setup_config(self):
  2069.   File "<input>", line 1
  2070.     def _setup_config(self):
  2071.     ^
  2072. IndentationError: unexpected indent
  2073. >>>         stock_size = gtk.ICON_SIZE_BUTTON
  2074.   File "<input>", line 1
  2075.     stock_size = gtk.ICON_SIZE_BUTTON
  2076.     ^
  2077. IndentationError: unexpected indent
  2078. >>>         config_bar = gtk.HBox()
  2079.   File "<input>", line 1
  2080.     config_bar = gtk.HBox()
  2081.     ^
  2082. IndentationError: unexpected indent
  2083. >>>
  2084. >>>         b_to_gif = Utils.button_stock(gtk.STOCK_CONVERT,stock_size)
  2085.   File "<input>", line 1
  2086.     b_to_gif = Utils.button_stock(gtk.STOCK_CONVERT,stock_size)
  2087.     ^
  2088. IndentationError: unexpected indent
  2089. >>>         b_to_sprite = Utils.button_stock(gtk.STOCK_CONVERT,stock_size)
  2090.   File "<input>", line 1
  2091.     b_to_sprite = Utils.button_stock(gtk.STOCK_CONVERT,stock_size)
  2092.     ^
  2093. IndentationError: unexpected indent
  2094. >>>         b_conf = Utils.button_stock(gtk.STOCK_PREFERENCES,stock_size)
  2095.   File "<input>", line 1
  2096.     b_conf = Utils.button_stock(gtk.STOCK_PREFERENCES,stock_size)
  2097.     ^
  2098. IndentationError: unexpected indent
  2099. >>>
  2100. >>>         # connect
  2101. >>>         b_conf.connect("clicked",self.on_config)
  2102.   File "<input>", line 1
  2103.     b_conf.connect("clicked",self.on_config)
  2104.     ^
  2105. IndentationError: unexpected indent
  2106. >>>         b_to_gif.connect('clicked',self.create_formated_version,'gif')
  2107.   File "<input>", line 1
  2108.     b_to_gif.connect('clicked',self.create_formated_version,'gif')
  2109.     ^
  2110. IndentationError: unexpected indent
  2111. >>>         b_to_sprite.connect('clicked',self.create_formated_version,'spritesheet')
  2112.   File "<input>", line 1
  2113.     b_to_sprite.connect('clicked',self.create_formated_version,'spritesheet')
  2114.     ^
  2115. IndentationError: unexpected indent
  2116. >>>
  2117. >>>         # tooltips
  2118. >>>         b_conf.set_tooltip_text("open configuration dialog")
  2119.   File "<input>", line 1
  2120.     b_conf.set_tooltip_text("open configuration dialog")
  2121.     ^
  2122. IndentationError: unexpected indent
  2123. >>>         b_to_gif.set_tooltip_text("Create a formated Image to export as gif animation")
  2124.   File "<input>", line 1
  2125.     b_to_gif.set_tooltip_text("Create a formated Image to export as gif animation")
  2126.     ^
  2127. IndentationError: unexpected indent
  2128. >>>         b_to_sprite.set_tooltip_text("Create a formated Image to export as spritesheet")
  2129.   File "<input>", line 1
  2130.     b_to_sprite.set_tooltip_text("Create a formated Image to export as spritesheet")
  2131.     ^
  2132. IndentationError: unexpected indent
  2133. >>>
  2134. >>>         # disable when is playing
  2135. >>>         w = [b_conf, b_to_gif,b_to_sprite]
  2136.   File "<input>", line 1
  2137.     w = [b_conf, b_to_gif,b_to_sprite]
  2138.     ^
  2139. IndentationError: unexpected indent
  2140. >>>         map(lambda x: self.widgets_to_disable.append(x),w)
  2141.   File "<input>", line 1
  2142.     map(lambda x: self.widgets_to_disable.append(x),w)
  2143.     ^
  2144. IndentationError: unexpected indent
  2145. >>>
  2146. >>>         # pack into config_bar
  2147. >>>         map(lambda x: config_bar.pack_start(x,False,False,0),w)
  2148.   File "<input>", line 1
  2149.     map(lambda x: config_bar.pack_start(x,False,False,0),w)
  2150.     ^
  2151. IndentationError: unexpected indent
  2152. >>>         return config_bar
  2153.   File "<input>", line 1
  2154.     return config_bar
  2155.     ^
  2156. IndentationError: unexpected indent
  2157. >>>
  2158. >>>     def _setup_onionskin(self):
  2159.   File "<input>", line 1
  2160.     def _setup_onionskin(self):
  2161.     ^
  2162. IndentationError: unexpected indent
  2163. >>>         stock_size = gtk.ICON_SIZE_BUTTON
  2164.   File "<input>", line 1
  2165.     stock_size = gtk.ICON_SIZE_BUTTON
  2166.     ^
  2167. IndentationError: unexpected indent
  2168. >>>         button_size = 30
  2169.   File "<input>", line 1
  2170.     button_size = 30
  2171.     ^
  2172. IndentationError: unexpected indent
  2173. >>>         onionskin_bar = gtk.HBox()
  2174.   File "<input>", line 1
  2175.     onionskin_bar = gtk.HBox()
  2176.     ^
  2177. IndentationError: unexpected indent
  2178. >>>
  2179. >>>         # active onionskin
  2180. >>>         b_active = Utils.toggle_button_stock(gtk.STOCK_DND_MULTIPLE,stock_size)
  2181.   File "<input>", line 1
  2182.     b_active = Utils.toggle_button_stock(gtk.STOCK_DND_MULTIPLE,stock_size)
  2183.     ^
  2184. IndentationError: unexpected indent
  2185. >>>
  2186. >>>         # connect widgets
  2187. >>>         b_active.connect("clicked",self.on_onionskin)
  2188.   File "<input>", line 1
  2189.     b_active.connect("clicked",self.on_onionskin)
  2190.     ^
  2191. IndentationError: unexpected indent
  2192. >>>
  2193. >>>         # tooltips
  2194. >>>         b_active.set_tooltip_text("enable/disable the onion skin effect")
  2195.   File "<input>", line 1
  2196.     b_active.set_tooltip_text("enable/disable the onion skin effect")
  2197.     ^
  2198. IndentationError: unexpected indent
  2199. >>>
  2200. >>>         # add to the disable on play list
  2201. >>>         w = [b_active]
  2202.   File "<input>", line 1
  2203.     w = [b_active]
  2204.     ^
  2205. IndentationError: unexpected indent
  2206. >>>         map(lambda x: self.widgets_to_disable.append(x),w)
  2207.   File "<input>", line 1
  2208.     map(lambda x: self.widgets_to_disable.append(x),w)
  2209.     ^
  2210. IndentationError: unexpected indent
  2211. >>>
  2212. >>>         # packing everything in gbar
  2213. >>>         map(lambda x: onionskin_bar.pack_start(x,False,False,0),w)
  2214.   File "<input>", line 1
  2215.     map(lambda x: onionskin_bar.pack_start(x,False,False,0),w)
  2216.     ^
  2217. IndentationError: unexpected indent
  2218. >>>         return onionskin_bar
  2219.   File "<input>", line 1
  2220.     return onionskin_bar
  2221.     ^
  2222. IndentationError: unexpected indent
  2223. >>>
  2224. >>>     def _setup_generalbar(self):
  2225.   File "<input>", line 1
  2226.     def _setup_generalbar(self):
  2227.     ^
  2228. IndentationError: unexpected indent
  2229. >>>         stock_size = gtk.ICON_SIZE_BUTTON
  2230.   File "<input>", line 1
  2231.     stock_size = gtk.ICON_SIZE_BUTTON
  2232.     ^
  2233. IndentationError: unexpected indent
  2234. >>>         general_bar = gtk.HBox()
  2235.   File "<input>", line 1
  2236.     general_bar = gtk.HBox()
  2237.     ^
  2238. IndentationError: unexpected indent
  2239. >>>
  2240. >>>         b_about = Utils.button_stock(gtk.STOCK_ABOUT,stock_size)
  2241.   File "<input>", line 1
  2242.     b_about = Utils.button_stock(gtk.STOCK_ABOUT,stock_size)
  2243.     ^
  2244. IndentationError: unexpected indent
  2245. >>>         b_quit = Utils.button_stock(gtk.STOCK_QUIT,stock_size)
  2246.   File "<input>", line 1
  2247.     b_quit = Utils.button_stock(gtk.STOCK_QUIT,stock_size)
  2248.     ^
  2249. IndentationError: unexpected indent
  2250. >>>
  2251. >>>         # callbacks
  2252. >>>         b_quit.connect('clicked',self.destroy)
  2253.   File "<input>", line 1
  2254.     b_quit.connect('clicked',self.destroy)
  2255.     ^
  2256. IndentationError: unexpected indent
  2257. >>>         b_about.connect('clicked',self.on_about)
  2258.   File "<input>", line 1
  2259.     b_about.connect('clicked',self.on_about)
  2260.     ^
  2261. IndentationError: unexpected indent
  2262. >>>
  2263. >>>         # tooltips
  2264. >>>         b_about.set_tooltip_text("About FAnim")
  2265.   File "<input>", line 1
  2266.     b_about.set_tooltip_text("About FAnim")
  2267.     ^
  2268. IndentationError: unexpected indent
  2269. >>>         b_quit.set_tooltip_text("Exit")
  2270.   File "<input>", line 1
  2271.     b_quit.set_tooltip_text("Exit")
  2272.     ^
  2273. IndentationError: unexpected indent
  2274. >>>
  2275. >>>         # add to the disable on play list
  2276. >>>         w = [b_about, b_quit]
  2277.   File "<input>", line 1
  2278.     w = [b_about, b_quit]
  2279.     ^
  2280. IndentationError: unexpected indent
  2281. >>>         map(lambda x: self.widgets_to_disable.append(x),w)
  2282.   File "<input>", line 1
  2283.     map(lambda x: self.widgets_to_disable.append(x),w)
  2284.     ^
  2285. IndentationError: unexpected indent
  2286. >>>
  2287. >>>         # packing everything in general_bar
  2288. >>>         map(lambda x: general_bar.pack_start(x,False,False,0),w)
  2289.   File "<input>", line 1
  2290.     map(lambda x: general_bar.pack_start(x,False,False,0),w)
  2291.     ^
  2292. IndentationError: unexpected indent
  2293. >>>         return general_bar
  2294.   File "<input>", line 1
  2295.     return general_bar
  2296.     ^
  2297. IndentationError: unexpected indent
  2298. >>>
  2299. >>>     def get_settings(self):
  2300.   File "<input>", line 1
  2301.     def get_settings(self):
  2302.     ^
  2303. IndentationError: unexpected indent
  2304. >>>         s = {}
  2305.   File "<input>", line 1
  2306.     s = {}
  2307.     ^
  2308. IndentationError: unexpected indent
  2309. >>>         s[FRAMERATE] = self.framerate
  2310.   File "<input>", line 1
  2311.     s[FRAMERATE] = self.framerate
  2312.     ^
  2313. IndentationError: unexpected indent
  2314. >>>         s[OSKIN_DEPTH] = self.oskin_depth
  2315.   File "<input>", line 1
  2316.     s[OSKIN_DEPTH] = self.oskin_depth
  2317.     ^
  2318. IndentationError: unexpected indent
  2319. >>>         s[OSKIN_FORWARD] = self.oskin_forward
  2320.   File "<input>", line 1
  2321.     s[OSKIN_FORWARD] = self.oskin_forward
  2322.     ^
  2323. IndentationError: unexpected indent
  2324. >>>         s[OSKIN_BACKWARD] = self.oskin_backward
  2325.   File "<input>", line 1
  2326.     s[OSKIN_BACKWARD] = self.oskin_backward
  2327.     ^
  2328. IndentationError: unexpected indent
  2329. >>>         s[OSKIN_ONPLAY] = self.oskin_onplay
  2330.   File "<input>", line 1
  2331.     s[OSKIN_ONPLAY] = self.oskin_onplay
  2332.     ^
  2333. IndentationError: unexpected indent
  2334. >>>
  2335. >>>         s[WIN_POSX] = self.win_pos[0]
  2336.   File "<input>", line 1
  2337.     s[WIN_POSX] = self.win_pos[0]
  2338.     ^
  2339. IndentationError: unexpected indent
  2340. >>>         s[WIN_POSY] = self.win_pos[1]
  2341.   File "<input>", line 1
  2342.     s[WIN_POSY] = self.win_pos[1]
  2343.     ^
  2344. IndentationError: unexpected indent
  2345. >>>         s[WIN_WIDTH] = self.get_allocation()[2]
  2346.   File "<input>", line 1
  2347.     s[WIN_WIDTH] = self.get_allocation()[2]
  2348.     ^
  2349. IndentationError: unexpected indent
  2350. >>>         s[WIN_HEIGHT] = self.get_allocation()[3]
  2351.   File "<input>", line 1
  2352.     s[WIN_HEIGHT] = self.get_allocation()[3]
  2353.     ^
  2354. IndentationError: unexpected indent
  2355. >>>         return s
  2356.   File "<input>", line 1
  2357.     return s
  2358.     ^
  2359. IndentationError: unexpected indent
  2360. >>>
  2361. >>>     def set_settings(self,conf):
  2362.   File "<input>", line 1
  2363.     def set_settings(self,conf):
  2364.     ^
  2365. IndentationError: unexpected indent
  2366. >>>         if conf == None:
  2367.   File "<input>", line 1
  2368.     if conf == None:
  2369.     ^
  2370. IndentationError: unexpected indent
  2371. >>>             return
  2372.   File "<input>", line 1
  2373.     return
  2374.     ^
  2375. IndentationError: unexpected indent
  2376. >>>
  2377. >>>         self.framerate = int(conf[FRAMERATE])
  2378.   File "<input>", line 1
  2379.     self.framerate = int(conf[FRAMERATE])
  2380.     ^
  2381. IndentationError: unexpected indent
  2382. >>>         self.oskin_depth = int(conf[OSKIN_DEPTH])
  2383.   File "<input>", line 1
  2384.     self.oskin_depth = int(conf[OSKIN_DEPTH])
  2385.     ^
  2386. IndentationError: unexpected indent
  2387. >>>         self.oskin_forward = conf[OSKIN_FORWARD]
  2388.   File "<input>", line 1
  2389.     self.oskin_forward = conf[OSKIN_FORWARD]
  2390.     ^
  2391. IndentationError: unexpected indent
  2392. >>>         self.oskin_backward = conf[OSKIN_BACKWARD]
  2393.   File "<input>", line 1
  2394.     self.oskin_backward = conf[OSKIN_BACKWARD]
  2395.     ^
  2396. IndentationError: unexpected indent
  2397. >>>         self.oskin_onplay = conf[OSKIN_ONPLAY]
  2398.   File "<input>", line 1
  2399.     self.oskin_onplay = conf[OSKIN_ONPLAY]
  2400.     ^
  2401. IndentationError: unexpected indent
  2402. >>>         self.win_size  = (conf[WIN_WIDTH],conf[WIN_HEIGHT])
  2403.   File "<input>", line 1
  2404.     self.win_size  = (conf[WIN_WIDTH],conf[WIN_HEIGHT])
  2405.     ^
  2406. IndentationError: unexpected indent
  2407. >>>         self.win_pos = (conf[WIN_POSX],conf[WIN_POSY])
  2408.   File "<input>", line 1
  2409.     self.win_pos = (conf[WIN_POSX],conf[WIN_POSY])
  2410.     ^
  2411. IndentationError: unexpected indent
  2412. >>>
  2413. >>>     def _toggle_enable_buttons(self,state):
  2414.   File "<input>", line 1
  2415.     def _toggle_enable_buttons(self,state):
  2416.     ^
  2417. IndentationError: unexpected indent
  2418. >>>         if state == PLAYING:
  2419.   File "<input>", line 1
  2420.     if state == PLAYING:
  2421.     ^
  2422. IndentationError: unexpected indent
  2423. >>>             for w in self.widgets_to_disable:
  2424.   File "<input>", line 1
  2425.     for w in self.widgets_to_disable:
  2426.     ^
  2427. IndentationError: unexpected indent
  2428. >>>                 w.set_sensitive(not self.is_playing)
  2429.   File "<input>", line 1
  2430.     w.set_sensitive(not self.is_playing)
  2431.     ^
  2432. IndentationError: unexpected indent
  2433. >>>         elif state == NO_FRAMES:
  2434.   File "<input>", line 1
  2435.     elif state == NO_FRAMES:
  2436.     ^
  2437. IndentationError: unexpected indent
  2438. >>>             self.play_bar.set_sensitive(not self.play_bar.get_sensitive())
  2439.   File "<input>", line 1
  2440.     self.play_bar.set_sensitive(not self.play_bar.get_sensitive())
  2441.     ^
  2442. IndentationError: unexpected indent
  2443. >>>
  2444. >>>
  2445. >>> #----------------------Callback Functions----------------#
  2446. >>>     def on_window_focus(self,widget,other):
  2447.   File "<input>", line 1
  2448.     def on_window_focus(self,widget,other):
  2449.     ^
  2450. IndentationError: unexpected indent
  2451. >>>         """
  2452.  File "<input>", line 1
  2453.    """
  2454.     ^
  2455. IndentationError: unexpected indent
  2456. >>>         Update all timeline thumbnails.
  2457.   File "<input>", line 1
  2458.     Update all timeline thumbnails.
  2459.     ^
  2460. IndentationError: unexpected indent
  2461. >>>         """
  2462.  File "<input>", line 1
  2463.    """
  2464.     ^
  2465. IndentationError: unexpected indent
  2466. >>>         # I discovered that gimp has a delay to update when the image are closed, putting
  2467. >>>         # a small delay here i make sure that my if will catch the lack of the image
  2468. >>>         # and close fanim correctly.
  2469. >>>         time.sleep(0.1)
  2470.   File "<input>", line 1
  2471.     time.sleep(0.1)
  2472.     ^
  2473. IndentationError: unexpected indent
  2474. >>>         if not(self.image in gimp.image_list()):
  2475.   File "<input>", line 1
  2476.     if not(self.image in gimp.image_list()):
  2477.     ^
  2478. IndentationError: unexpected indent
  2479. >>>             self.destroy(False)
  2480.   File "<input>", line 1
  2481.     self.destroy(False)
  2482.     ^
  2483. IndentationError: unexpected indent
  2484. >>>         else:
  2485.   File "<input>", line 1
  2486.     else:
  2487.     ^
  2488. IndentationError: unexpected indent
  2489. >>>             # fixing problem that happens after delete the last layer through gimp.
  2490. >>>             # and closing when theres no layers at all.
  2491. >>>             if not self.image.layers:
  2492.   File "<input>", line 1
  2493.     if not self.image.layers:
  2494.     ^
  2495. IndentationError: unexpected indent
  2496. >>>                 self.destroy(False)
  2497.   File "<input>", line 1
  2498.     self.destroy(False)
  2499.     ^
  2500. IndentationError: unexpected indent
  2501. >>>             else:
  2502.   File "<input>", line 1
  2503.     else:
  2504.     ^
  2505. IndentationError: unexpected indent
  2506. >>>                 if self.active >= len(self.image.layers):
  2507.   File "<input>", line 1
  2508.     if self.active >= len(self.image.layers):
  2509.     ^
  2510. IndentationError: unexpected indent
  2511. >>>                     self.active = len(self.image.layers)-1
  2512.   File "<input>", line 1
  2513.     self.active = len(self.image.layers)-1
  2514.     ^
  2515. IndentationError: unexpected indent
  2516. >>>                 self._scan_image_layers()
  2517.   File "<input>", line 1
  2518.     self._scan_image_layers()
  2519.     ^
  2520. IndentationError: unexpected indent
  2521. >>>                 self.on_goto(None,GIMP_ACTIVE)
  2522.   File "<input>", line 1
  2523.     self.on_goto(None,GIMP_ACTIVE)
  2524.     ^
  2525. IndentationError: unexpected indent
  2526. >>>
  2527. >>>     def on_about(self,widget):
  2528.   File "<input>", line 1
  2529.     def on_about(self,widget):
  2530.     ^
  2531. IndentationError: unexpected indent
  2532. >>>         about = gtk.AboutDialog()
  2533.   File "<input>", line 1
  2534.     about = gtk.AboutDialog()
  2535.     ^
  2536. IndentationError: unexpected indent
  2537. >>>
  2538. >>>         about.set_authors(AUTHORS)
  2539.   File "<input>", line 1
  2540.     about.set_authors(AUTHORS)
  2541.     ^
  2542. IndentationError: unexpected indent
  2543. >>>         about.set_program_name(NAME)
  2544.   File "<input>", line 1
  2545.     about.set_program_name(NAME)
  2546.     ^
  2547. IndentationError: unexpected indent
  2548. >>>         about.set_copyright(COPYRIGHT)
  2549.   File "<input>", line 1
  2550.     about.set_copyright(COPYRIGHT)
  2551.     ^
  2552. IndentationError: unexpected indent
  2553. >>>         about.set_website(WEBSITE)
  2554.   File "<input>", line 1
  2555.     about.set_website(WEBSITE)
  2556.     ^
  2557. IndentationError: unexpected indent
  2558. >>>
  2559. >>>         about.run()
  2560.   File "<input>", line 1
  2561.     about.run()
  2562.     ^
  2563. IndentationError: unexpected indent
  2564. >>>         about.destroy()
  2565.   File "<input>", line 1
  2566.     about.destroy()
  2567.     ^
  2568. IndentationError: unexpected indent
  2569. >>>
  2570. >>>     def create_formated_version(self,widget,format='gif'):
  2571.   File "<input>", line 1
  2572.     def create_formated_version(self,widget,format='gif'):
  2573.     ^
  2574. IndentationError: unexpected indent
  2575. >>>         """
  2576.  File "<input>", line 1
  2577.    """
  2578.     ^
  2579. IndentationError: unexpected indent
  2580. >>>         Create a formated version of the animation to export as a giff or as a spritesheet.
  2581.   File "<input>", line 1
  2582.     Create a formated version of the animation to export as a giff or as a spritesheet.
  2583.     ^
  2584. IndentationError: unexpected indent
  2585. >>>         """
  2586.  File "<input>", line 1
  2587.    """
  2588.     ^
  2589. IndentationError: unexpected indent
  2590. >>>         # disabling the onionskin temporaly if is activated
  2591. >>>         oskin_disabled = False
  2592.   File "<input>", line 1
  2593.     oskin_disabled = False
  2594.     ^
  2595. IndentationError: unexpected indent
  2596. >>>         if self.oskin:
  2597.   File "<input>", line 1
  2598.     if self.oskin:
  2599.     ^
  2600. IndentationError: unexpected indent
  2601. >>>             self.on_onionskin(None)
  2602.   File "<input>", line 1
  2603.     self.on_onionskin(None)
  2604.     ^
  2605. IndentationError: unexpected indent
  2606. >>>             oskin_disabled = True
  2607.   File "<input>", line 1
  2608.     oskin_disabled = True
  2609.     ^
  2610. IndentationError: unexpected indent
  2611. >>>
  2612. >>>         # get normal and visibly fixed frames.
  2613. >>>         normal_frames = filter(lambda x: x.fixed == False,self.frames)
  2614.   File "<input>", line 1
  2615.     normal_frames = filter(lambda x: x.fixed == False,self.frames)
  2616.     ^
  2617. IndentationError: unexpected indent
  2618. >>>         fixed_frames = filter(lambda x: x.fixed == True,self.frames)
  2619.   File "<input>", line 1
  2620.     fixed_frames = filter(lambda x: x.fixed == True,self.frames)
  2621.     ^
  2622. IndentationError: unexpected indent
  2623. >>>
  2624. >>>         new_image = gimp.Image(self.image.width,self.image.height,self.image.base_type)
  2625.   File "<input>", line 1
  2626.     new_image = gimp.Image(self.image.width,self.image.height,self.image.base_type)
  2627.     ^
  2628. IndentationError: unexpected indent
  2629. >>>
  2630. >>>
  2631. >>>         # reverse the normal frames.
  2632. >>>         normal_frames.reverse()
  2633.   File "<input>", line 1
  2634.     normal_frames.reverse()
  2635.     ^
  2636. IndentationError: unexpected indent
  2637. >>>
  2638. >>>         for fl in normal_frames:
  2639.   File "<input>", line 1
  2640.     for fl in normal_frames:
  2641.     ^
  2642. IndentationError: unexpected indent
  2643. >>>             # create a group to put the normal and the fixed frames.
  2644. >>>             group = gimp.GroupLayer(new_image,fl.layer.name)
  2645.   File "<input>", line 1
  2646.     group = gimp.GroupLayer(new_image,fl.layer.name)
  2647.     ^
  2648. IndentationError: unexpected indent
  2649. >>>            
  2650. >>>             # copy normal layer
  2651. >>>             lcopy = pdb.gimp_layer_new_from_drawable(fl.layer,new_image)
  2652.   File "<input>", line 1
  2653.     lcopy = pdb.gimp_layer_new_from_drawable(fl.layer,new_image)
  2654.     ^
  2655. IndentationError: unexpected indent
  2656. >>>             lcopy.visible = True
  2657.   File "<input>", line 1
  2658.     lcopy.visible = True
  2659.     ^
  2660. IndentationError: unexpected indent
  2661. >>>
  2662. >>>             new_image.add_layer(group,len(new_image.layers))
  2663.   File "<input>", line 1
  2664.     new_image.add_layer(group,len(new_image.layers))
  2665.     ^
  2666. IndentationError: unexpected indent
  2667. >>>             new_image.insert_layer(lcopy,group,0)
  2668.   File "<input>", line 1
  2669.     new_image.insert_layer(lcopy,group,0)
  2670.     ^
  2671. IndentationError: unexpected indent
  2672. >>>
  2673. >>>             # get the background and foreground frames.
  2674. >>>             up_fixed = filter(lambda x: self.frames.index(x) > self.frames.index(fl),fixed_frames)
  2675.   File "<input>", line 1
  2676.     up_fixed = filter(lambda x: self.frames.index(x) > self.frames.index(fl),fixed_frames)
  2677.     ^
  2678. IndentationError: unexpected indent
  2679. >>>             bottom_fixed = filter(lambda x: self.frames.index(x) < self.frames.index(fl),fixed_frames)
  2680.   File "<input>", line 1
  2681.     bottom_fixed = filter(lambda x: self.frames.index(x) < self.frames.index(fl),fixed_frames)
  2682.     ^
  2683. IndentationError: unexpected indent
  2684. >>>
  2685. >>>             # copy and insert the fixed visibility layers/frames
  2686. >>>             b =0
  2687.   File "<input>", line 1
  2688.     b =0
  2689.     ^
  2690. IndentationError: unexpected indent
  2691. >>>             for ff in fixed_frames:
  2692.   File "<input>", line 1
  2693.     for ff in fixed_frames:
  2694.     ^
  2695. IndentationError: unexpected indent
  2696. >>>                 copy = pdb.gimp_layer_new_from_drawable(ff.layer,new_image)
  2697.   File "<input>", line 1
  2698.     copy = pdb.gimp_layer_new_from_drawable(ff.layer,new_image)
  2699.     ^
  2700. IndentationError: unexpected indent
  2701. >>>                 if ff in bottom_fixed:
  2702.   File "<input>", line 1
  2703.     if ff in bottom_fixed:
  2704.     ^
  2705. IndentationError: unexpected indent
  2706. >>>                     new_image.insert_layer(copy,group,len(group.layers)-b)
  2707.   File "<input>", line 1
  2708.     new_image.insert_layer(copy,group,len(group.layers)-b)
  2709.     ^
  2710. IndentationError: unexpected indent
  2711. >>>                     b+= 1
  2712.   File "<input>", line 1
  2713.     b+= 1
  2714.     ^
  2715. IndentationError: unexpected indent
  2716. >>>                 elif ff in up_fixed:
  2717.   File "<input>", line 1
  2718.     elif ff in up_fixed:
  2719.     ^
  2720. IndentationError: unexpected indent
  2721. >>>                     new_image.insert_layer(copy,group,0)
  2722.   File "<input>", line 1
  2723.     new_image.insert_layer(copy,group,0)
  2724.     ^
  2725. IndentationError: unexpected indent
  2726. >>>
  2727. >>>         if format == 'gif':
  2728.   File "<input>", line 1
  2729.     if format == 'gif':
  2730.     ^
  2731. IndentationError: unexpected indent
  2732. >>>             # show the formated image to export as gif.
  2733. >>>             gimp.Display(new_image)
  2734.   File "<input>", line 1
  2735.     gimp.Display(new_image)
  2736.     ^
  2737. IndentationError: unexpected indent
  2738. >>>
  2739. >>>         elif format == 'spritesheet':
  2740.   File "<input>", line 1
  2741.     elif format == 'spritesheet':
  2742.     ^
  2743. IndentationError: unexpected indent
  2744. >>>             simg = gimp.Image(len(new_image.layers) * self.image.width,self.image.height,self.image.base_type)
  2745.   File "<input>", line 1
  2746.     simg = gimp.Image(len(new_image.layers) * self.image.width,self.image.height,self.image.base_type)
  2747.     ^
  2748. IndentationError: unexpected indent
  2749. >>>
  2750. >>>             cnt = 0
  2751.   File "<input>", line 1
  2752.     cnt = 0
  2753.     ^
  2754. IndentationError: unexpected indent
  2755. >>>             def novisible (x,state):
  2756.   File "<input>", line 1
  2757.     def novisible (x,state):
  2758.     ^
  2759. IndentationError: unexpected indent
  2760. >>>                 # change the visibility of the gimp layers.
  2761. >>>                  x.visible = state
  2762.   File "<input>", line 1
  2763.     x.visible = state
  2764.     ^
  2765. IndentationError: unexpected indent
  2766. >>>
  2767. >>>             # copy each frame and position it side by side.
  2768. >>>             # put the layers order back to normal.
  2769. >>>             n_img_layers = new_image.layers
  2770.   File "<input>", line 1
  2771.     n_img_layers = new_image.layers
  2772.     ^
  2773. IndentationError: unexpected indent
  2774. >>>             n_img_layers.reverse()
  2775.   File "<input>", line 1
  2776.     n_img_layers.reverse()
  2777.     ^
  2778. IndentationError: unexpected indent
  2779. >>>
  2780. >>>             for l in n_img_layers:
  2781.   File "<input>", line 1
  2782.     for l in n_img_layers:
  2783.     ^
  2784. IndentationError: unexpected indent
  2785. >>>                 cl = pdb.gimp_layer_new_from_drawable(l,simg)
  2786.   File "<input>", line 1
  2787.     cl = pdb.gimp_layer_new_from_drawable(l,simg)
  2788.     ^
  2789. IndentationError: unexpected indent
  2790. >>>                 simg.add_layer(cl,0)
  2791.   File "<input>", line 1
  2792.     simg.add_layer(cl,0)
  2793.     ^
  2794. IndentationError: unexpected indent
  2795. >>>
  2796. >>>                 cl.transform_2d(0,0,1,1,0,-cnt * new_image.width,0,1,0)
  2797.   File "<input>", line 1
  2798.     cl.transform_2d(0,0,1,1,0,-cnt * new_image.width,0,1,0)
  2799.     ^
  2800. IndentationError: unexpected indent
  2801. >>>                 cnt +=1
  2802.   File "<input>", line 1
  2803.     cnt +=1
  2804.     ^
  2805. IndentationError: unexpected indent
  2806. >>>                 # merge the group as flat image.
  2807. >>>                 map(lambda x:novisible(x,False),simg.layers)
  2808.   File "<input>", line 1
  2809.     map(lambda x:novisible(x,False),simg.layers)
  2810.     ^
  2811. IndentationError: unexpected indent
  2812. >>>                 cl.visible = True
  2813.   File "<input>", line 1
  2814.     cl.visible = True
  2815.     ^
  2816. IndentationError: unexpected indent
  2817. >>>                 simg.merge_visible_layers(1)
  2818.   File "<input>", line 1
  2819.     simg.merge_visible_layers(1)
  2820.     ^
  2821. IndentationError: unexpected indent
  2822. >>>
  2823. >>>             map(lambda x:novisible(x,True),simg.layers)
  2824.   File "<input>", line 1
  2825.     map(lambda x:novisible(x,True),simg.layers)
  2826.     ^
  2827. IndentationError: unexpected indent
  2828. >>>             # show the formated image to export as spritesheet.
  2829. >>>             gimp.Display(simg)
  2830.   File "<input>", line 1
  2831.     gimp.Display(simg)
  2832.     ^
  2833. IndentationError: unexpected indent
  2834. >>>         # return onionskin if was enabled
  2835. >>>         if oskin_disabled:
  2836.   File "<input>", line 1
  2837.     if oskin_disabled:
  2838.     ^
  2839. IndentationError: unexpected indent
  2840. >>>             self.on_onionskin(None)
  2841.   File "<input>", line 1
  2842.     self.on_onionskin(None)
  2843.     ^
  2844. IndentationError: unexpected indent
  2845. >>>
  2846. >>>     def on_toggle_play(self,widget):
  2847.   File "<input>", line 1
  2848.     def on_toggle_play(self,widget):
  2849.     ^
  2850. IndentationError: unexpected indent
  2851. >>>         """
  2852.  File "<input>", line 1
  2853.    """
  2854.     ^
  2855. IndentationError: unexpected indent
  2856. >>>         This method change the animation play state,
  2857.   File "<input>", line 1
  2858.     This method change the animation play state,
  2859.     ^
  2860. IndentationError: unexpected indent
  2861. >>>         change the button image and will disable/enable the other buttons
  2862.   File "<input>", line 1
  2863.     change the button image and will disable/enable the other buttons
  2864.     ^
  2865. IndentationError: unexpected indent
  2866. >>>         interation.
  2867.   File "<input>", line 1
  2868.     interation.
  2869.     ^
  2870. IndentationError: unexpected indent
  2871. >>>         for that they need 2 image which is stored in self.play_button_images
  2872.   File "<input>", line 1
  2873.     for that they need 2 image which is stored in self.play_button_images
  2874.     ^
  2875. IndentationError: unexpected indent
  2876. >>>         variable.
  2877.   File "<input>", line 1
  2878.     variable.
  2879.     ^
  2880. IndentationError: unexpected indent
  2881. >>>         """
  2882.  File "<input>", line 1
  2883.    """
  2884.     ^
  2885. IndentationError: unexpected indent
  2886. >>>         # if onionskin on play is disable then disable remaining frames
  2887. >>>         if self.oskin_onplay:
  2888.   File "<input>", line 1
  2889.     if self.oskin_onplay:
  2890.     ^
  2891. IndentationError: unexpected indent
  2892. >>>             self.layers_show(False)
  2893.   File "<input>", line 1
  2894.     self.layers_show(False)
  2895.     ^
  2896. IndentationError: unexpected indent
  2897. >>>
  2898. >>>         self.is_playing = not self.is_playing
  2899.   File "<input>", line 1
  2900.     self.is_playing = not self.is_playing
  2901.     ^
  2902. IndentationError: unexpected indent
  2903. >>>
  2904. >>>         if self.is_playing:
  2905.   File "<input>", line 1
  2906.     if self.is_playing:
  2907.     ^
  2908. IndentationError: unexpected indent
  2909. >>>             # saving the atual frame before start to play.
  2910. >>>             if self.before_play == None:
  2911.   File "<input>", line 1
  2912.     if self.before_play == None:
  2913.     ^
  2914. IndentationError: unexpected indent
  2915. >>>                 self.before_play = self.active
  2916.   File "<input>", line 1
  2917.     self.before_play = self.active
  2918.     ^
  2919. IndentationError: unexpected indent
  2920. >>>
  2921. >>>             widget.set_image(self.play_button_images[1]) # set pause image to the button
  2922.   File "<input>", line 1
  2923.     widget.set_image(self.play_button_images[1]) # set pause image to the button
  2924.     ^
  2925. IndentationError: unexpected indent
  2926. >>>
  2927. >>>             # start the player object to play the frames in a sequence.
  2928. >>>             if not self.player:
  2929.   File "<input>", line 1
  2930.     if not self.player:
  2931.     ^
  2932. IndentationError: unexpected indent
  2933. >>>                 self.player = Player(self,widget)
  2934.   File "<input>", line 1
  2935.     self.player = Player(self,widget)
  2936.     ^
  2937. IndentationError: unexpected indent
  2938. >>>             # block every other button than pause.
  2939. >>>             self._toggle_enable_buttons(PLAYING)
  2940.   File "<input>", line 1
  2941.     self._toggle_enable_buttons(PLAYING)
  2942.     ^
  2943. IndentationError: unexpected indent
  2944. >>>
  2945. >>>             # start the loop to play the frames.
  2946. >>>             self.player.start()
  2947.   File "<input>", line 1
  2948.     self.player.start()
  2949.     ^
  2950. IndentationError: unexpected indent
  2951. >>>
  2952. >>>         else :
  2953.   File "<input>", line 1
  2954.     else :
  2955.     ^
  2956. IndentationError: unexpected indent
  2957. >>>             # restore last frame before play.
  2958. >>>             if self.before_play != None:
  2959.   File "<input>", line 1
  2960.     if self.before_play != None:
  2961.     ^
  2962. IndentationError: unexpected indent
  2963. >>>                 self.on_goto(None,POS,index=self.before_play)
  2964.   File "<input>", line 1
  2965.     self.on_goto(None,POS,index=self.before_play)
  2966.     ^
  2967. IndentationError: unexpected indent
  2968. >>>                 self.before_play = None
  2969.   File "<input>", line 1
  2970.     self.before_play = None
  2971.     ^
  2972. IndentationError: unexpected indent
  2973. >>>
  2974. >>>             widget.set_image(self.play_button_images[0]) # set play image
  2975.   File "<input>", line 1
  2976.     widget.set_image(self.play_button_images[0]) # set play image
  2977.     ^
  2978. IndentationError: unexpected indent
  2979. >>>             self._toggle_enable_buttons(PLAYING)
  2980.   File "<input>", line 1
  2981.     self._toggle_enable_buttons(PLAYING)
  2982.     ^
  2983. IndentationError: unexpected indent
  2984. >>>             self.on_goto(None,NOWHERE) # update atual frame.
  2985.   File "<input>", line 1
  2986.     self.on_goto(None,NOWHERE) # update atual frame.
  2987.     ^
  2988. IndentationError: unexpected indent
  2989. >>>
  2990. >>>     def on_replay(self,widget):
  2991.   File "<input>", line 1
  2992.     def on_replay(self,widget):
  2993.     ^
  2994. IndentationError: unexpected indent
  2995. >>>         self.is_replay = widget.get_active()
  2996.   File "<input>", line 1
  2997.     self.is_replay = widget.get_active()
  2998.     ^
  2999. IndentationError: unexpected indent
  3000. >>>
  3001. >>>     def on_onionskin(self,widget):
  3002.   File "<input>", line 1
  3003.     def on_onionskin(self,widget):
  3004.     ^
  3005. IndentationError: unexpected indent
  3006. >>>         """
  3007.  File "<input>", line 1
  3008.    """
  3009.     ^
  3010. IndentationError: unexpected indent
  3011. >>>         Toggle onionskin.
  3012.   File "<input>", line 1
  3013.     Toggle onionskin.
  3014.     ^
  3015. IndentationError: unexpected indent
  3016. >>>         """
  3017.  File "<input>", line 1
  3018.    """
  3019.     ^
  3020. IndentationError: unexpected indent
  3021. >>>         self.layers_show(False) # clear remaining onionskin frames
  3022.   File "<input>", line 1
  3023.     self.layers_show(False) # clear remaining onionskin frames
  3024.     ^
  3025. IndentationError: unexpected indent
  3026. >>>         if widget == None:
  3027.   File "<input>", line 1
  3028.     if widget == None:
  3029.     ^
  3030. IndentationError: unexpected indent
  3031. >>>             self.oskin = not self.oskin
  3032.   File "<input>", line 1
  3033.     self.oskin = not self.oskin
  3034.     ^
  3035. IndentationError: unexpected indent
  3036. >>>         else: self.oskin = widget.get_active()
  3037.   File "<input>", line 1
  3038.     else: self.oskin = widget.get_active()
  3039.     ^
  3040. IndentationError: unexpected indent
  3041. >>>         self.on_goto(None,NOWHERE,True)
  3042.   File "<input>", line 1
  3043.     self.on_goto(None,NOWHERE,True)
  3044.     ^
  3045. IndentationError: unexpected indent
  3046. >>>
  3047. >>>     def on_config(self,widget):
  3048.   File "<input>", line 1
  3049.     def on_config(self,widget):
  3050.     ^
  3051. IndentationError: unexpected indent
  3052. >>>         """
  3053.  File "<input>", line 1
  3054.    """
  3055.     ^
  3056. IndentationError: unexpected indent
  3057. >>>         Open a dialog to set all the settings of the plugin.
  3058.   File "<input>", line 1
  3059.     Open a dialog to set all the settings of the plugin.
  3060.     ^
  3061. IndentationError: unexpected indent
  3062. >>>         """
  3063.  File "<input>", line 1
  3064.    """
  3065.     ^
  3066. IndentationError: unexpected indent
  3067. >>>         dialog = ConfDialog("FAnim Config",self,self.get_settings())
  3068.   File "<input>", line 1
  3069.     dialog = ConfDialog("FAnim Config",self,self.get_settings())
  3070.     ^
  3071. IndentationError: unexpected indent
  3072. >>>         result, config = dialog.run()
  3073.   File "<input>", line 1
  3074.     result, config = dialog.run()
  3075.     ^
  3076. IndentationError: unexpected indent
  3077. >>>
  3078. >>>         if result == gtk.RESPONSE_APPLY:
  3079.   File "<input>", line 1
  3080.     if result == gtk.RESPONSE_APPLY:
  3081.     ^
  3082. IndentationError: unexpected indent
  3083. >>>             self.set_settings(config)
  3084.   File "<input>", line 1
  3085.     self.set_settings(config)
  3086.     ^
  3087. IndentationError: unexpected indent
  3088. >>>         dialog.destroy()
  3089.   File "<input>", line 1
  3090.     dialog.destroy()
  3091.     ^
  3092. IndentationError: unexpected indent
  3093. >>>
  3094. >>>     def on_move(self,widget,direction):
  3095.   File "<input>", line 1
  3096.     def on_move(self,widget,direction):
  3097.     ^
  3098. IndentationError: unexpected indent
  3099. >>>         """
  3100.  File "<input>", line 1
  3101.    """
  3102.     ^
  3103. IndentationError: unexpected indent
  3104. >>>         Move the layer and the frame forward or backward.
  3105.   File "<input>", line 1
  3106.     Move the layer and the frame forward or backward.
  3107.     ^
  3108. IndentationError: unexpected indent
  3109. >>>         """
  3110.  File "<input>", line 1
  3111.    """
  3112.     ^
  3113. IndentationError: unexpected indent
  3114. >>>         # calculate next position
  3115. >>>         index = 0
  3116.   File "<input>", line 1
  3117.     index = 0
  3118.     ^
  3119. IndentationError: unexpected indent
  3120. >>>         if direction == NEXT:
  3121.   File "<input>", line 1
  3122.     if direction == NEXT:
  3123.     ^
  3124. IndentationError: unexpected indent
  3125. >>>             index = self.active+1
  3126.   File "<input>", line 1
  3127.     index = self.active+1
  3128.     ^
  3129. IndentationError: unexpected indent
  3130. >>>             if index == len(self.frames):
  3131.   File "<input>", line 1
  3132.     if index == len(self.frames):
  3133.     ^
  3134. IndentationError: unexpected indent
  3135. >>>                 return
  3136.   File "<input>", line 1
  3137.     return
  3138.     ^
  3139. IndentationError: unexpected indent
  3140. >>>
  3141. >>>         elif direction == PREV:
  3142.   File "<input>", line 1
  3143.     elif direction == PREV:
  3144.     ^
  3145. IndentationError: unexpected indent
  3146. >>>             index = self.active-1
  3147.   File "<input>", line 1
  3148.     index = self.active-1
  3149.     ^
  3150. IndentationError: unexpected indent
  3151. >>>             if self.active-1 < 0:
  3152.   File "<input>", line 1
  3153.     if self.active-1 < 0:
  3154.     ^
  3155. IndentationError: unexpected indent
  3156. >>>                 return
  3157.   File "<input>", line 1
  3158.     return
  3159.     ^
  3160. IndentationError: unexpected indent
  3161. >>>         # move layer.
  3162. >>>         if direction == NEXT:
  3163.   File "<input>", line 1
  3164.     if direction == NEXT:
  3165.     ^
  3166. IndentationError: unexpected indent
  3167. >>>             self.image.raise_layer(self.frames[self.active].layer)
  3168.   File "<input>", line 1
  3169.     self.image.raise_layer(self.frames[self.active].layer)
  3170.     ^
  3171. IndentationError: unexpected indent
  3172. >>>         elif direction == PREV:
  3173.   File "<input>", line 1
  3174.     elif direction == PREV:
  3175.     ^
  3176. IndentationError: unexpected indent
  3177. >>>             self.image.lower_layer(self.frames[self.active].layer)
  3178.   File "<input>", line 1
  3179.     self.image.lower_layer(self.frames[self.active].layer)
  3180.     ^
  3181. IndentationError: unexpected indent
  3182. >>>
  3183. >>>         # update Timeline
  3184. >>>         self._scan_image_layers()
  3185.   File "<input>", line 1
  3186.     self._scan_image_layers()
  3187.     ^
  3188. IndentationError: unexpected indent
  3189. >>>         self.active = index
  3190.   File "<input>", line 1
  3191.     self.active = index
  3192.     ^
  3193. IndentationError: unexpected indent
  3194. >>>         self.on_goto(None,NOWHERE)
  3195.   File "<input>", line 1
  3196.     self.on_goto(None,NOWHERE)
  3197.     ^
  3198. IndentationError: unexpected indent
  3199. >>>
  3200. >>>     def on_remove(self,widget):
  3201.   File "<input>", line 1
  3202.     def on_remove(self,widget):
  3203.     ^
  3204. IndentationError: unexpected indent
  3205. >>>         """
  3206.  File "<input>", line 1
  3207.    """
  3208.     ^
  3209. IndentationError: unexpected indent
  3210. >>>         Remove the atual selected frame, and his layer. and if the case his sublayers.
  3211.   File "<input>", line 1
  3212.     Remove the atual selected frame, and his layer. and if the case his sublayers.
  3213.     ^
  3214. IndentationError: unexpected indent
  3215. >>>         """
  3216.  File "<input>", line 1
  3217.    """
  3218.     ^
  3219. IndentationError: unexpected indent
  3220. >>>         if not self.frames:
  3221.   File "<input>", line 1
  3222.     if not self.frames:
  3223.     ^
  3224. IndentationError: unexpected indent
  3225. >>>             return
  3226.   File "<input>", line 1
  3227.     return
  3228.     ^
  3229. IndentationError: unexpected indent
  3230. >>>
  3231. >>>         index = 0
  3232.   File "<input>", line 1
  3233.     index = 0
  3234.     ^
  3235. IndentationError: unexpected indent
  3236. >>>         if self.active > 0:
  3237.   File "<input>", line 1
  3238.     if self.active > 0:
  3239.     ^
  3240. IndentationError: unexpected indent
  3241. >>>             self.on_goto(None,PREV,True)
  3242.   File "<input>", line 1
  3243.     self.on_goto(None,PREV,True)
  3244.     ^
  3245. IndentationError: unexpected indent
  3246. >>>             index = self.active + 1
  3247.   File "<input>", line 1
  3248.     index = self.active + 1
  3249.     ^
  3250. IndentationError: unexpected indent
  3251. >>>
  3252. >>>         self.image.remove_layer(self.frames[index].layer)
  3253.   File "<input>", line 1
  3254.     self.image.remove_layer(self.frames[index].layer)
  3255.     ^
  3256. IndentationError: unexpected indent
  3257. >>>         self.frame_bar.remove (self.frames[index])
  3258.   File "<input>", line 1
  3259.     self.frame_bar.remove (self.frames[index])
  3260.     ^
  3261. IndentationError: unexpected indent
  3262. >>>         self.frames[index].destroy()
  3263.   File "<input>", line 1
  3264.     self.frames[index].destroy()
  3265.     ^
  3266. IndentationError: unexpected indent
  3267. >>>         self.frames.remove(self.frames[index])
  3268.   File "<input>", line 1
  3269.     self.frames.remove(self.frames[index])
  3270.     ^
  3271. IndentationError: unexpected indent
  3272. >>>
  3273. >>>         if len(self.frames) == 0:
  3274.   File "<input>", line 1
  3275.     if len(self.frames) == 0:
  3276.     ^
  3277. IndentationError: unexpected indent
  3278. >>>             self._toggle_enable_buttons(NO_FRAMES)
  3279.   File "<input>", line 1
  3280.     self._toggle_enable_buttons(NO_FRAMES)
  3281.     ^
  3282. IndentationError: unexpected indent
  3283. >>>         else :
  3284.   File "<input>", line 1
  3285.     else :
  3286.     ^
  3287. IndentationError: unexpected indent
  3288. >>>             self.on_goto(None,None,True)
  3289.   File "<input>", line 1
  3290.     self.on_goto(None,None,True)
  3291.     ^
  3292. IndentationError: unexpected indent
  3293. >>>         # check if theres layers left.
  3294. >>>         self.on_window_focus(None,None);
  3295.   File "<input>", line 1
  3296.     self.on_window_focus(None,None);
  3297.     ^
  3298. IndentationError: unexpected indent
  3299. >>>
  3300. >>>     def on_add(self,widget,copy=False):
  3301.   File "<input>", line 1
  3302.     def on_add(self,widget,copy=False):
  3303.     ^
  3304. IndentationError: unexpected indent
  3305. >>>         """
  3306.  File "<input>", line 1
  3307.    """
  3308.     ^
  3309. IndentationError: unexpected indent
  3310. >>>         Add new layer to the image and a new frame to the Timeline.
  3311.   File "<input>", line 1
  3312.     Add new layer to the image and a new frame to the Timeline.
  3313.     ^
  3314. IndentationError: unexpected indent
  3315. >>>         if copy is true them the current layer will be copy.
  3316.   File "<input>", line 1
  3317.     if copy is true them the current layer will be copy.
  3318.     ^
  3319. IndentationError: unexpected indent
  3320. >>>         """
  3321.  File "<input>", line 1
  3322.    """
  3323.     ^
  3324. IndentationError: unexpected indent
  3325. >>>         # starting gimp undo group
  3326. >>>         self.image.undo_group_start()
  3327.   File "<input>", line 1
  3328.     self.image.undo_group_start()
  3329.     ^
  3330. IndentationError: unexpected indent
  3331. >>>
  3332. >>>         name = "Frame " + str(len(self.frames))
  3333.   File "<input>", line 1
  3334.     name = "Frame " + str(len(self.frames))
  3335.     ^
  3336. IndentationError: unexpected indent
  3337. >>>         # create the layer to add
  3338. >>>         l = None
  3339.   File "<input>", line 1
  3340.     l = None
  3341.     ^
  3342. IndentationError: unexpected indent
  3343. >>>         if not copy:
  3344.   File "<input>", line 1
  3345.     if not copy:
  3346.     ^
  3347. IndentationError: unexpected indent
  3348. >>>             l = gimp.Layer(self.image,name, self.image.width,self.image.height,RGBA_IMAGE,100,NORMAL_MODE)
  3349.   File "<input>", line 1
  3350.     l = gimp.Layer(self.image,name, self.image.width,self.image.height,RGBA_IMAGE,100,NORMAL_MODE)
  3351.     ^
  3352. IndentationError: unexpected indent
  3353. >>>
  3354. >>>         else: # copy current layer to add
  3355.   File "<input>", line 1
  3356.     else: # copy current layer to add
  3357.     ^
  3358. IndentationError: unexpected indent
  3359. >>>             l = self.frames[self.active].layer.copy()
  3360.   File "<input>", line 1
  3361.     l = self.frames[self.active].layer.copy()
  3362.     ^
  3363. IndentationError: unexpected indent
  3364. >>>             l.name = name
  3365.   File "<input>", line 1
  3366.     l.name = name
  3367.     ^
  3368. IndentationError: unexpected indent
  3369. >>>
  3370. >>>         # adding layer
  3371. >>>         self.image.add_layer(l,len(self.image.layers)-self.active-1)
  3372.   File "<input>", line 1
  3373.     self.image.add_layer(l,len(self.image.layers)-self.active-1)
  3374.     ^
  3375. IndentationError: unexpected indent
  3376. >>>         if self.new_layer_type == TRANSPARENT_FILL and not copy:
  3377.   File "<input>", line 1
  3378.     if self.new_layer_type == TRANSPARENT_FILL and not copy:
  3379.     ^
  3380. IndentationError: unexpected indent
  3381. >>>             pdb.gimp_edit_clear(l)
  3382.   File "<input>", line 1
  3383.     pdb.gimp_edit_clear(l)
  3384.     ^
  3385. IndentationError: unexpected indent
  3386. >>>
  3387. >>>         self._scan_image_layers()
  3388.   File "<input>", line 1
  3389.     self._scan_image_layers()
  3390.     ^
  3391. IndentationError: unexpected indent
  3392. >>>         self.on_goto(None,NEXT,True)
  3393.   File "<input>", line 1
  3394.     self.on_goto(None,NEXT,True)
  3395.     ^
  3396. IndentationError: unexpected indent
  3397. >>>
  3398. >>>         if len(self.frames) == 1 :
  3399.   File "<input>", line 1
  3400.     if len(self.frames) == 1 :
  3401.     ^
  3402. IndentationError: unexpected indent
  3403. >>>             self._toggle_enable_buttons(NO_FRAMES)
  3404.   File "<input>", line 1
  3405.     self._toggle_enable_buttons(NO_FRAMES)
  3406.     ^
  3407. IndentationError: unexpected indent
  3408. >>>
  3409. >>>         # ending gimp undo group
  3410. >>>         self.image.undo_group_end()
  3411.   File "<input>", line 1
  3412.     self.image.undo_group_end()
  3413.     ^
  3414. IndentationError: unexpected indent
  3415. >>>
  3416. >>>     def on_click_goto(self,widget,event):
  3417.   File "<input>", line 1
  3418.     def on_click_goto(self,widget,event):
  3419.     ^
  3420. IndentationError: unexpected indent
  3421. >>>         """
  3422.  File "<input>", line 1
  3423.    """
  3424.     ^
  3425. IndentationError: unexpected indent
  3426. >>>         handlers a click on frame widgets.
  3427.   File "<input>", line 1
  3428.     handlers a click on frame widgets.
  3429.     ^
  3430. IndentationError: unexpected indent
  3431. >>>         """
  3432.  File "<input>", line 1
  3433.    """
  3434.     ^
  3435. IndentationError: unexpected indent
  3436. >>>         i = self.frames.index(widget)
  3437.   File "<input>", line 1
  3438.     i = self.frames.index(widget)
  3439.     ^
  3440. IndentationError: unexpected indent
  3441. >>>         self.on_goto(None,POS,index=i)
  3442.   File "<input>", line 1
  3443.     self.on_goto(None,POS,index=i)
  3444.     ^
  3445. IndentationError: unexpected indent
  3446. >>>
  3447. >>>     def on_goto(self,widget,to,update=False,index=0):
  3448.   File "<input>", line 1
  3449.     def on_goto(self,widget,to,update=False,index=0):
  3450.     ^
  3451. IndentationError: unexpected indent
  3452. >>>         """
  3453.  File "<input>", line 1
  3454.    """
  3455.     ^
  3456. IndentationError: unexpected indent
  3457. >>>         This method change the atual active frame to where the variable
  3458.   File "<input>", line 1
  3459.     This method change the atual active frame to where the variable
  3460.     ^
  3461. IndentationError: unexpected indent
  3462. >>>         (to) indicate, the macros are (START, END, NEXT, PREV,POS,GIMP_ACTIVE)
  3463.   File "<input>", line 1
  3464.     (to) indicate, the macros are (START, END, NEXT, PREV,POS,GIMP_ACTIVE)
  3465.     ^
  3466. IndentationError: unexpected indent
  3467. >>>         - called once per frame when is_playing is enabled.
  3468.   File "<input>", line 1
  3469.     - called once per frame when is_playing is enabled.
  3470.     ^
  3471. IndentationError: unexpected indent
  3472. >>>         """
  3473.  File "<input>", line 1
  3474.    """
  3475.     ^
  3476. IndentationError: unexpected indent
  3477. >>>         self.layers_show(False)
  3478.   File "<input>", line 1
  3479.     self.layers_show(False)
  3480.     ^
  3481. IndentationError: unexpected indent
  3482. >>>
  3483. >>>         if update:
  3484.   File "<input>", line 1
  3485.     if update:
  3486.     ^
  3487. IndentationError: unexpected indent
  3488. >>>             self.frames[self.active].update_layer_info()
  3489.   File "<input>", line 1
  3490.     self.frames[self.active].update_layer_info()
  3491.     ^
  3492. IndentationError: unexpected indent
  3493. >>>
  3494. >>>         if to == START:
  3495.   File "<input>", line 1
  3496.     if to == START:
  3497.     ^
  3498. IndentationError: unexpected indent
  3499. >>>             self.active = 0
  3500.   File "<input>", line 1
  3501.     self.active = 0
  3502.     ^
  3503. IndentationError: unexpected indent
  3504. >>>
  3505. >>>         elif to == END:
  3506.   File "<input>", line 1
  3507.     elif to == END:
  3508.     ^
  3509. IndentationError: unexpected indent
  3510. >>>             self.active = len(self.frames)-1
  3511.   File "<input>", line 1
  3512.     self.active = len(self.frames)-1
  3513.     ^
  3514. IndentationError: unexpected indent
  3515. >>>
  3516. >>>         elif to == NEXT:
  3517.   File "<input>", line 1
  3518.     elif to == NEXT:
  3519.     ^
  3520. IndentationError: unexpected indent
  3521. >>>             i = self.active + 1
  3522.   File "<input>", line 1
  3523.     i = self.active + 1
  3524.     ^
  3525. IndentationError: unexpected indent
  3526. >>>             if i > len(self.frames)-1:
  3527.   File "<input>", line 1
  3528.     if i > len(self.frames)-1:
  3529.     ^
  3530. IndentationError: unexpected indent
  3531. >>>                 i = 0
  3532.   File "<input>", line 1
  3533.     i = 0
  3534.     ^
  3535. IndentationError: unexpected indent
  3536. >>>             self.active = i
  3537.   File "<input>", line 1
  3538.     self.active = i
  3539.     ^
  3540. IndentationError: unexpected indent
  3541. >>>
  3542. >>>         elif to == PREV:
  3543.   File "<input>", line 1
  3544.     elif to == PREV:
  3545.     ^
  3546. IndentationError: unexpected indent
  3547. >>>             i = self.active - 1
  3548.   File "<input>", line 1
  3549.     i = self.active - 1
  3550.     ^
  3551. IndentationError: unexpected indent
  3552. >>>             if i < 0:
  3553.   File "<input>", line 1
  3554.     if i < 0:
  3555.     ^
  3556. IndentationError: unexpected indent
  3557. >>>                 i= len(self.frames)-1
  3558.   File "<input>", line 1
  3559.     i= len(self.frames)-1
  3560.     ^
  3561. IndentationError: unexpected indent
  3562. >>>             self.active = i
  3563.   File "<input>", line 1
  3564.     self.active = i
  3565.     ^
  3566. IndentationError: unexpected indent
  3567. >>>         elif to == POS:
  3568.   File "<input>", line 1
  3569.     elif to == POS:
  3570.     ^
  3571. IndentationError: unexpected indent
  3572. >>>             self.active = index
  3573.   File "<input>", line 1
  3574.     self.active = index
  3575.     ^
  3576. IndentationError: unexpected indent
  3577. >>>
  3578. >>>         elif to == GIMP_ACTIVE:
  3579.   File "<input>", line 1
  3580.     elif to == GIMP_ACTIVE:
  3581.     ^
  3582. IndentationError: unexpected indent
  3583. >>>             if self.image.active_layer in self.image.layers:
  3584.   File "<input>", line 1
  3585.     if self.image.active_layer in self.image.layers:
  3586.     ^
  3587. IndentationError: unexpected indent
  3588. >>>                 self.active = self.image.layers.index(self.image.active_layer)
  3589.   File "<input>", line 1
  3590.     self.active = self.image.layers.index(self.image.active_layer)
  3591.     ^
  3592. IndentationError: unexpected indent
  3593. >>>                 self.active = len(self.image.layers)-1-self.active
  3594.   File "<input>", line 1
  3595.     self.active = len(self.image.layers)-1-self.active
  3596.     ^
  3597. IndentationError: unexpected indent
  3598. >>>             else :self.active = 0
  3599.   File "<input>", line 1
  3600.     else :self.active = 0
  3601.     ^
  3602. IndentationError: unexpected indent
  3603. >>>
  3604. >>>         self.layers_show(True)
  3605.   File "<input>", line 1
  3606.     self.layers_show(True)
  3607.     ^
  3608. IndentationError: unexpected indent
  3609. >>>         self.image.active_layer = self.frames[self.active].layer
  3610.   File "<input>", line 1
  3611.     self.image.active_layer = self.frames[self.active].layer
  3612.     ^
  3613. IndentationError: unexpected indent
  3614. >>>
  3615. >>>         gimp.displays_flush() # update the gimp GUI
  3616.   File "<input>", line 1
  3617.     gimp.displays_flush() # update the gimp GUI
  3618.     ^
  3619. IndentationError: unexpected indent
  3620. >>>
  3621. >>>
  3622. >>>     def layers_show(self,state):
  3623.   File "<input>", line 1
  3624.     def layers_show(self,state):
  3625.     ^
  3626. IndentationError: unexpected indent
  3627. >>>         """
  3628.  File "<input>", line 1
  3629.    """
  3630.     ^
  3631. IndentationError: unexpected indent
  3632. >>>         Util function to hide the old frames and show the next.
  3633.   File "<input>", line 1
  3634.     Util function to hide the old frames and show the next.
  3635.     ^
  3636. IndentationError: unexpected indent
  3637. >>>         """
  3638.  File "<input>", line 1
  3639.    """
  3640.     ^
  3641. IndentationError: unexpected indent
  3642. >>>         self.undo(False)
  3643.   File "<input>", line 1
  3644.     self.undo(False)
  3645.     ^
  3646. IndentationError: unexpected indent
  3647. >>>
  3648. >>>         opacity = 0
  3649.   File "<input>", line 1
  3650.     opacity = 0
  3651.     ^
  3652. IndentationError: unexpected indent
  3653. >>>
  3654. >>>         self.frames[self.active].layer.opacity = 100.0
  3655.   File "<input>", line 1
  3656.     self.frames[self.active].layer.opacity = 100.0
  3657.     ^
  3658. IndentationError: unexpected indent
  3659. >>>
  3660. >>>         if not state:
  3661.   File "<input>", line 1
  3662.     if not state:
  3663.     ^
  3664. IndentationError: unexpected indent
  3665. >>>             opacity = 100.0
  3666.   File "<input>", line 1
  3667.     opacity = 100.0
  3668.     ^
  3669. IndentationError: unexpected indent
  3670. >>>         else :
  3671.   File "<input>", line 1
  3672.     else :
  3673.     ^
  3674. IndentationError: unexpected indent
  3675. >>>             opacity = self.oskin_max_opacity
  3676.   File "<input>", line 1
  3677.     opacity = self.oskin_max_opacity
  3678.     ^
  3679. IndentationError: unexpected indent
  3680. >>>
  3681. >>>         self.frames[self.active].layer.visible = state # show or hide the frame
  3682.   File "<input>", line 1
  3683.     self.frames[self.active].layer.visible = state # show or hide the frame
  3684.     ^
  3685. IndentationError: unexpected indent
  3686. >>>         self.frames[self.active].highlight(state) # highlight or not the frame
  3687.   File "<input>", line 1
  3688.     self.frames[self.active].highlight(state) # highlight or not the frame
  3689.     ^
  3690. IndentationError: unexpected indent
  3691. >>>
  3692. >>>         is_fixed = self.frames[self.active].fixed # if actual frame is fixed
  3693.   File "<input>", line 1
  3694.     is_fixed = self.frames[self.active].fixed # if actual frame is fixed
  3695.     ^
  3696. IndentationError: unexpected indent
  3697. >>>
  3698. >>>         if (self.oskin and not is_fixed) and not(self.is_playing and not self.oskin_onplay):
  3699.   File "<input>", line 1
  3700.     if (self.oskin and not is_fixed) and not(self.is_playing and not self.oskin_onplay):
  3701.     ^
  3702. IndentationError: unexpected indent
  3703. >>>             # calculating the onionskin backward and forward
  3704. >>>             for i in range(1,self.oskin_depth +1):
  3705.   File "<input>", line 1
  3706.     for i in range(1,self.oskin_depth +1):
  3707.     ^
  3708. IndentationError: unexpected indent
  3709. >>>                 # calculating opacity level
  3710. >>>                 o = opacity
  3711.   File "<input>", line 1
  3712.     o = opacity
  3713.     ^
  3714. IndentationError: unexpected indent
  3715. >>>                 if i > 1 and state: o = opacity / i-1 * 2
  3716.   File "<input>", line 1
  3717.     if i > 1 and state: o = opacity / i-1 * 2
  3718.     ^
  3719. IndentationError: unexpected indent
  3720. >>>
  3721. >>>                 pos = self.active - i
  3722.   File "<input>", line 1
  3723.     pos = self.active - i
  3724.     ^
  3725. IndentationError: unexpected indent
  3726. >>>                 if self.oskin_backward and pos >= 0:
  3727.   File "<input>", line 1
  3728.     if self.oskin_backward and pos >= 0:
  3729.     ^
  3730. IndentationError: unexpected indent
  3731. >>>                     is_fixed = self.frames[pos].fixed
  3732.   File "<input>", line 1
  3733.     is_fixed = self.frames[pos].fixed
  3734.     ^
  3735. IndentationError: unexpected indent
  3736. >>>                     if not is_fixed: # discard fixed frames
  3737.   File "<input>", line 1
  3738.     if not is_fixed: # discard fixed frames
  3739.     ^
  3740. IndentationError: unexpected indent
  3741. >>>                         # calculate onionskin depth opacity decay.
  3742. >>>                         self.frames[pos].layer.visible = state
  3743.   File "<input>", line 1
  3744.     self.frames[pos].layer.visible = state
  3745.     ^
  3746. IndentationError: unexpected indent
  3747. >>>                         self.frames[pos].layer.opacity = o
  3748.   File "<input>", line 1
  3749.     self.frames[pos].layer.opacity = o
  3750.     ^
  3751. IndentationError: unexpected indent
  3752. >>>
  3753. >>>                 pos = self.active +i
  3754.   File "<input>", line 1
  3755.     pos = self.active +i
  3756.     ^
  3757. IndentationError: unexpected indent
  3758. >>>                 if self.oskin_forward and pos <= len(self.frames)-1:
  3759.   File "<input>", line 1
  3760.     if self.oskin_forward and pos <= len(self.frames)-1:
  3761.     ^
  3762. IndentationError: unexpected indent
  3763. >>>                     is_fixed = self.frames[pos].fixed
  3764.   File "<input>", line 1
  3765.     is_fixed = self.frames[pos].fixed
  3766.     ^
  3767. IndentationError: unexpected indent
  3768. >>>                     #self.frames[self.active].layer.opacity = min(100.0, 1.5*opacity)
  3769. >>>
  3770. >>>                     if not is_fixed:# discard fixed frames
  3771.   File "<input>", line 1
  3772.     if not is_fixed:# discard fixed frames
  3773.     ^
  3774. IndentationError: unexpected indent
  3775. >>>                         # calculate onionskin depth opacity decay.
  3776. >>>                         self.frames[pos].layer.visible = state
  3777.   File "<input>", line 1
  3778.     self.frames[pos].layer.visible = state
  3779.     ^
  3780. IndentationError: unexpected indent
  3781. >>>                         self.frames[pos].layer.opacity = o
  3782.   File "<input>", line 1
  3783.     self.frames[pos].layer.opacity = o
  3784.     ^
  3785. IndentationError: unexpected indent
  3786. >>>
  3787. >>>         if self.frames[self.active].fixed and state == False:
  3788.   File "<input>", line 1
  3789.     if self.frames[self.active].fixed and state == False:
  3790.     ^
  3791. IndentationError: unexpected indent
  3792. >>>             self.frames[self.active].layer.visible = True
  3793.   File "<input>", line 1
  3794.     self.frames[self.active].layer.visible = True
  3795.     ^
  3796. IndentationError: unexpected indent
  3797. >>>
  3798. >>>         self.undo(True)
  3799.   File "<input>", line 1
  3800.     self.undo(True)
  3801.     ^
  3802. IndentationError: unexpected indent
  3803. >>>
  3804. >>>
  3805. >>> def timeline_main(image,drawable):
  3806. ...     """
  3807. ...     gimp call initial function, created the main timeline window.
  3808. ...     """
  3809. ...     global WINDOW_TITLE
  3810. ...     WINDOW_TITLE = WINDOW_TITLE % (image.name)
  3811. ...     win = Timeline(WINDOW_TITLE,image)
  3812. ...     win.start()
  3813. ...
  3814. >>> # register the script on GIMP
  3815. >>> register(
  3816. ...         "fanim_timeline",
  3817. ...         DESCRIPTION,
  3818. ...         DESCRIPTION,
  3819. ...         AUTHORS[0],
  3820. ...         AUTHORS[0],
  3821. ...         YEAR,
  3822. ...         GIMP_LOCATION,
  3823. ...         "*",
  3824. ...         [],[],timeline_main)
  3825. Traceback (most recent call last):
  3826.   File "<input>", line 1, in <module>
  3827. NameError: name 'register' is not defined
  3828. >>> main()
Add Comment
Please, Sign In to add comment