This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def __key_detect_cb(self, _list_view, event): | |
keyname = Gdk.keyval_name(event.keyval) | |
(path, col) = self._list_view.tree_view.get_cursor() | |
ren = col.get_cell_renderers()[0] | |
self._list_view.tree_view.set_cursor_on_cell(path, col, ren ,False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[Aiamutkarsh@Kickass:~$ python iconify.py stickhero.svg [-s #666666] [-f #ffffstickhero.svg | |
iamutkarsh@Kickass:~$ python iconify.py stickhero.svg | |
Warning: invalid canvas size (112px, 112px); Should be (55px, 55px) | |
entities_passed == 2 | |
entity definitions: | |
self.stroke_entity = #666666 | |
self.fill_entity = #ffffff | |
Warning: no entity replacements were made | |
iamutkarsh@Kickass:~$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iamutkarsh@Kickass:~$ python ./iconify.py -c input.svg | |
Warning: invalid canvas size (72.000000pt, 72.000000pt); Should be (55px, 55px) | |
entities_passed == 0 | |
entity definitions: | |
self.stroke_entity = none | |
self.fill_entity = #000000 | |
Are these self.entities correct? [y/n] y | |
iamutkarsh@Kickass:~$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iamutkarsh@Kickass:~/sugar-build$ cat *.py | grep -i "screenshot" | |
cat: *.py: No such file or directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Building = | |
* Building sugar | |
Command failed: make -j 8 | |
Making all in bin | |
make[1]: Entering directory `/home/broot/sugar-build/sugar/bin' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/broot/sugar-build/sugar/bin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StopButton(ToolButton): | |
def __init__(self, activity, **kwargs): | |
ToolButton.__init__(self, 'activity-stop', **kwargs) | |
self.props.tooltip = _('Stop') | |
self.props.accelerator = '<Ctrl>Q' | |
self.connect('clicked', self.__stop_button_clicked_cb, activity) | |
def __stop_button_clicked_cb(self, button, activity): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cancel_icon = Icon(icon_name='dialog-cancel') | |
cancel_label = _('Continue download') | |
alert.add_button(Gtk.ResponseType.CANCEL, cancel_label, | |
cancel_icon) | |
stop_icon = Icon(icon_name='dialog-ok') | |
alert.add_button(Gtk.ResponseType.OK, _('Stop'), stop_icon) | |
stop_icon.show() | |
activity.add_alert(alert) | |
alert.connect('response', self.__response_cb, activity) | |
alert.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Building = | |
* Building sugar | |
Command failed: make -j 8 | |
Making all in bin | |
make[1]: Entering directory `/home/broot/sugar-build/sugar/bin' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/broot/sugar-build/sugar/bin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jarabe.screenshotpanel.gui import ScreenshotPanel | |
BOUND_KEYS = ['<alt>1', 'Print'] | |
def handle_key_press(key): | |
#destroy(ScreenshotPanel) | |
if panel is None: | |
panel = ScreenshotPanel() | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iamutkarsh@Kickass:~/sugar-original/activities/Browser.activity$ python setup.py dist_xo | |
Traceback (most recent call last): | |
File "setup.py", line 19, in <module> | |
from sugar3.activity import bundlebuilder | |
ImportError: No module named sugar3.activity | |
iamutkarsh@Kickass:~/sugar-original/activities/Browser.activity$ | |