Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
0d7a7228
Commit
0d7a7228
authored
Sep 05, 2012
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct variable for uppersizer
parent
123fbf38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
pronterface.py
pronterface.py
+6
-6
No files found.
pronterface.py
View file @
0d7a7228
...
@@ -837,8 +837,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -837,8 +837,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
#self.newbuttonbutton.SetFont(wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL))
#self.newbuttonbutton.SetFont(wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL))
#self.newbuttonbutton.SetForegroundColour("black")
#self.newbuttonbutton.SetForegroundColour("black")
#self.newbuttonbutton.SetSize(obj.GetSize())
#self.newbuttonbutton.SetSize(obj.GetSize())
#if self.upper
bottom
sizer.GetItem(self.newbuttonbutton) is not None:
#if self.uppersizer.GetItem(self.newbuttonbutton) is not None:
# self.upper
bottom
sizer.SetItemMinSize(self.newbuttonbutton, obj.GetSize())
# self.uppersizer.SetItemMinSize(self.newbuttonbutton, obj.GetSize())
# self.mainsizer.Layout()
# self.mainsizer.Layout()
for
b
in
self
.
custombuttonbuttons
:
for
b
in
self
.
custombuttonbuttons
:
#if b.IsFrozen(): b.Thaw()
#if b.IsFrozen(): b.Thaw()
...
@@ -848,8 +848,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -848,8 +848,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
b
.
SetFont
(
wx
.
Font
(
10
,
wx
.
FONTFAMILY_DEFAULT
,
wx
.
FONTSTYLE_NORMAL
,
wx
.
FONTWEIGHT_NORMAL
))
b
.
SetFont
(
wx
.
Font
(
10
,
wx
.
FONTFAMILY_DEFAULT
,
wx
.
FONTSTYLE_NORMAL
,
wx
.
FONTWEIGHT_NORMAL
))
b
.
SetForegroundColour
(
"black"
)
b
.
SetForegroundColour
(
"black"
)
b
.
SetSize
(
obj
.
GetSize
())
b
.
SetSize
(
obj
.
GetSize
())
if
self
.
upper
bottom
sizer
.
GetItem
(
b
)
is
not
None
:
if
self
.
uppersizer
.
GetItem
(
b
)
is
not
None
:
self
.
upper
bottom
sizer
.
SetItemMinSize
(
b
,
obj
.
GetSize
())
self
.
uppersizer
.
SetItemMinSize
(
b
,
obj
.
GetSize
())
self
.
mainsizer
.
Layout
()
self
.
mainsizer
.
Layout
()
# b.SetStyle(wx.ALIGN_CENTRE+wx.ST_NO_AUTORESIZE+wx.SIMPLE_BORDER)
# b.SetStyle(wx.ALIGN_CENTRE+wx.ST_NO_AUTORESIZE+wx.SIMPLE_BORDER)
self
.
dragging
=
wx
.
Button
(
self
.
panel
,
-
1
,
obj
.
GetLabel
(),
style
=
wx
.
BU_EXACTFIT
)
self
.
dragging
=
wx
.
Button
(
self
.
panel
,
-
1
,
obj
.
GetLabel
(),
style
=
wx
.
BU_EXACTFIT
)
...
@@ -877,9 +877,9 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -877,9 +877,9 @@ class PronterWindow(MainWindow, pronsole.pronsole):
break
break
#if dst is None and self.panel.GetScreenRect().Contains(scrpos):
#if dst is None and self.panel.GetScreenRect().Contains(scrpos):
# # try to check if it is after buttons at the end
# # try to check if it is after buttons at the end
# tspos = self.panel.ClientToScreen(self.upper
bottom
sizer.GetPosition())
# tspos = self.panel.ClientToScreen(self.uppersizer.GetPosition())
# bspos = self.panel.ClientToScreen(self.centersizer.GetPosition())
# bspos = self.panel.ClientToScreen(self.centersizer.GetPosition())
# tsrect = wx.Rect(*(tspos.Get()+self.upper
bottom
sizer.GetSize().Get()))
# tsrect = wx.Rect(*(tspos.Get()+self.uppersizer.GetSize().Get()))
# bsrect = wx.Rect(*(bspos.Get()+self.centersizer.GetSize().Get()))
# bsrect = wx.Rect(*(bspos.Get()+self.centersizer.GetSize().Get()))
# lbrect = btns[-1].GetScreenRect()
# lbrect = btns[-1].GetScreenRect()
# p = scrpos.Get()
# p = scrpos.Get()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment