# HG changeset patch # User Radek Brich # Date 1317978479 -7200 # Node ID e6c3a5ee91aab703a2c6524e572a9882bdec8fd8 # Parent 5be7cc43402ebf966ea5a726c3f9cfece4556014 Eliminate relative imports. diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/application.py --- a/tuikit/application.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/application.py Fri Oct 07 11:07:59 2011 +0200 @@ -5,8 +5,8 @@ import time import math -from .container import Container -from .backend_curses import BackendCurses +from tuikit.container import Container +from tuikit.backend_curses import BackendCurses class TopWindow(Container): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/backend_curses.py --- a/tuikit/backend_curses.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/backend_curses.py Fri Oct 07 11:07:59 2011 +0200 @@ -5,7 +5,7 @@ import locale import logging -from .common import Rect +from tuikit.common import Rect class MouseEvent: diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/button.py --- a/tuikit/button.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/button.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from .widget import Widget +from tuikit.widget import Widget class Button(Widget): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/combobox.py --- a/tuikit/combobox.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/combobox.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -from .container import Container -from .editfield import EditField -from .button import Button -from .menu import Menu +from tuikit.container import Container +from tuikit.editfield import EditField +from tuikit.button import Button +from tuikit.menu import Menu class ComboBox(Container): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/container.py --- a/tuikit/container.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/container.py Fri Oct 07 11:07:59 2011 +0200 @@ -2,8 +2,8 @@ import logging -from .widget import Widget -from .common import Borders +from tuikit.widget import Widget +from tuikit.common import Borders class Container(Widget): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/editbox.py --- a/tuikit/editbox.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/editbox.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- -from .widget import Widget +from tuikit.widget import Widget + class EditBox(Widget): def __init__(self, width=20, height=20, text=''): @@ -218,3 +219,4 @@ self.handle('areasize') else: self.lines[self.cline] = ln[:cpos] + ln[cpos+1:] + diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/editfield.py --- a/tuikit/editfield.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/editfield.py Fri Oct 07 11:07:59 2011 +0200 @@ -2,7 +2,7 @@ import locale -from .widget import Widget +from tuikit.widget import Widget class EditField(Widget): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/label.py --- a/tuikit/label.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/label.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from .widget import Widget +from tuikit.widget import Widget class Label(Widget): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/layout.py --- a/tuikit/layout.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/layout.py Fri Oct 07 11:07:59 2011 +0200 @@ -10,7 +10,7 @@ import logging import math -from .common import Rect +from tuikit.common import Rect class Layout: diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/menu.py --- a/tuikit/menu.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/menu.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from .widget import Widget +from tuikit.widget import Widget class Menu(Widget): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/menubar.py --- a/tuikit/menubar.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/menubar.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from .widget import Widget +from tuikit.widget import Widget import logging diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/pager.py --- a/tuikit/pager.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/pager.py Fri Oct 07 11:07:59 2011 +0200 @@ -2,9 +2,9 @@ import logging -from .container import Container -from .layout import VerticalLayout, HorizontalLayout -from .button import Button +from tuikit.container import Container +from tuikit.layout import VerticalLayout, HorizontalLayout +from tuikit.button import Button class Pager(Container): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/scrollbar.py --- a/tuikit/scrollbar.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/scrollbar.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from .widget import Widget +from tuikit.widget import Widget class VScrollbar(Widget): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/textedit.py --- a/tuikit/textedit.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/textedit.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- -from .container import Container -from .editbox import EditBox -from .scrollbar import VScrollbar +from tuikit.container import Container +from tuikit.editbox import EditBox +from tuikit.scrollbar import VScrollbar class TextEdit(Container): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/treeview.py --- a/tuikit/treeview.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/treeview.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- -from .eventsource import EventSource -from .widget import Widget +from tuikit.eventsource import EventSource +from tuikit.widget import Widget + class TreeIter: def __init__(self, root, collapsed=[]): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/widget.py --- a/tuikit/widget.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/widget.py Fri Oct 07 11:07:59 2011 +0200 @@ -2,8 +2,8 @@ import logging -from .eventsource import EventSource -from .common import Coords, Size +from tuikit.eventsource import EventSource +from tuikit.common import Coords, Size class Widget(EventSource): diff -r 5be7cc43402e -r e6c3a5ee91aa tuikit/window.py --- a/tuikit/window.py Fri Oct 07 10:57:12 2011 +0200 +++ b/tuikit/window.py Fri Oct 07 11:07:59 2011 +0200 @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from .container import Container -from .button import Button +from tuikit.container import Container +from tuikit.button import Button class Window(Container):