Skip to content

Commit 0c06b50

Browse files
change imports
1 parent 7e3395d commit 0c06b50

File tree

13 files changed

+28
-23
lines changed

13 files changed

+28
-23
lines changed

farmlib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import pygame
55

66
from .dictmapper import DictMapper
7-
from .pluginsystem import base_plugin_system as PluginSystem
87

98
# SETTINGS
109

farmlib/expbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'''
66
import pygame
77

8-
from pygameui import Label
8+
from pygameui.label import Label
99

1010

1111
class ExpBar(Label):

farmlib/gamewindow.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import pygame
1212

1313
import farmlib
14-
from farmlib import __VERSION__, PluginSystem
14+
from farmlib import __VERSION__
1515
from farmlib.coreplugin import CorePlugin
1616
from farmlib.expbar import ExpBar
1717
from farmlib.farm import objects
@@ -24,7 +24,11 @@
2424
render_field, render_rain,
2525
render_seed_notify)
2626
from farmlib.timer import Timer
27-
from pygameui import Button, Image, Label, Window
27+
from farmlib.pluginsystem import base_plugin_system as PluginSystem
28+
from pygameui.button import Button
29+
from pygameui.image import Image
30+
from pygameui.label import Label
31+
from pygameui.window import Window
2832

2933
log = logging.getLogger("farmlib/gamewindow")
3034

@@ -40,7 +44,8 @@
4044
# merge objects images data (objects image have objects/objects+id.png)
4145
for gobject in objects:
4246
name = "object" + str(gobject['id']) + ".png"
43-
objectsimagepath = os.path.join("data", "images", os.path.join("objects", name))
47+
objectsimagepath = os.path.join("data", "images",
48+
os.path.join("objects", name))
4449
imagesdata["object" + str(gobject['id'])] = objectsimagepath
4550

4651

farmlib/helpwindow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
'''
66
import os
77

8-
from pygameui import Label, Window
8+
from pygameui.label import Label
9+
from pygameui.window import Window
910

1011

1112
class HelpWindow(Window):

farmlib/inventorywindow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
from .farm import objects
77
from .tooltip import Tooltip
8-
from pygameui import Button, Container, Image, Label
8+
from pygameui.button import Button
9+
from pygameui.container import Container
10+
from pygameui.image import Image
11+
from pygameui.label import Label
912

1013

1114
class InventoryWindow(Container):

farmlib/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
pygame.key.set_repeat(400, 100)
1313

1414

15-
1615
class FarmGamePygame(object):
1716
"""
1817
Farm Game Pygame
@@ -125,4 +124,3 @@ def main(self):
125124
f = FarmGamePygame()
126125
f.set_active_screen(MenuWindow())
127126
f.run()
128-

farmlib/marketwindow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
import farmlib
99
from .farm import objects
1010
from .tooltip import Tooltip
11-
from pygameui import Button, Container, Image, Label
11+
from pygameui.button import Button
12+
from pygameui.container import Container
13+
from pygameui.image import Image
14+
from pygameui.label import Label
1215

1316
WATERREFILLCOST = farmlib.rules["WATERREFILLCOST"]
1417
OBJECTSNOTINMARKET = farmlib.rules["OBJECTSNOTINMARKET"]

farmlib/menuwindow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
import pygame
99

1010
from farmlib.gamewindow import GameWindow
11-
from pygameui import Button, Container, Image, Label
11+
from pygameui.button import Button
12+
from pygameui.container import Container
13+
from pygameui.image import Image
14+
from pygameui.label import Label
1215

1316

1417
class MenuWindow(Container):

farmlib/tooltip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
44
@author: orneo1212
55
'''
6-
from pygameui import Label, Window
6+
from pygameui.label import Label
7+
from pygameui.window import Window
78

89

910
class Tooltip(Window):

pyFarmGame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
import pygame
77

8-
from farmlib import __VERSION__, PluginSystem
8+
from farmlib import __VERSION__
99
from farmlib.menuwindow import MenuWindow
10+
from farmlib.pluginsystem import base_plugin_system as PluginSystem
1011

1112
pygame.init()
1213
pygame.key.set_repeat(100, 100)
@@ -124,4 +125,3 @@ def main(self):
124125
f = FarmGamePygame()
125126
f.set_active_screen(MenuWindow())
126127
f.run()
127-

0 commit comments

Comments
 (0)