Eliminate relative imports.
--- 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):
--- 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:
--- 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):
--- 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):
--- 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):
--- 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:]
+
--- 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):
--- 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):
--- 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:
--- 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):
--- 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
--- 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):
--- 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):
--- 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):
--- 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=[]):
--- 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):
--- 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):