equal
deleted
inserted
replaced
25 import math |
25 import math |
26 from types import TupleType |
26 from types import TupleType |
27 from threading import Lock |
27 from threading import Lock |
28 |
28 |
29 import wx |
29 import wx |
30 if wx.VERSION >= (2, 8, 0): |
|
31 USE_AUI = True |
|
32 else: |
|
33 USE_AUI = False |
|
34 |
30 |
35 from plcopen.structures import * |
31 from plcopen.structures import * |
36 from PLCControler import ITEM_POU |
32 from PLCControler import ITEM_POU |
37 |
33 |
38 from dialogs import * |
34 from dialogs import * |
2918 yp = max(0, min(y - rotation * 3, self.Editor.GetVirtualSize()[1] / self.Editor.GetScrollPixelsPerUnit()[1])) |
2914 yp = max(0, min(y - rotation * 3, self.Editor.GetVirtualSize()[1] / self.Editor.GetScrollPixelsPerUnit()[1])) |
2919 self.RefreshVisibleElements(yp = yp) |
2915 self.RefreshVisibleElements(yp = yp) |
2920 self.Scroll(x, yp) |
2916 self.Scroll(x, yp) |
2921 |
2917 |
2922 def OnMoveWindow(self, event): |
2918 def OnMoveWindow(self, event): |
2923 if not USE_AUI: |
2919 self.Editor.GetBestSize() |
2924 self.Editor.GetBestSize() |
|
2925 self.RefreshScrollBars() |
2920 self.RefreshScrollBars() |
2926 self.RefreshVisibleElements() |
2921 self.RefreshVisibleElements() |
2927 event.Skip() |
2922 event.Skip() |
2928 |
2923 |
2929 def DoDrawing(self, dc, printing = False): |
2924 def DoDrawing(self, dc, printing = False): |