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
440a5ca5
Commit
440a5ca5
authored
Nov 14, 2011
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CallAfter to prevent mysterious double free or corruption error in wx.
parent
6783eb1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pronterface.py
pronterface.py
+4
-4
No files found.
pronterface.py
View file @
440a5ca5
...
@@ -135,8 +135,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -135,8 +135,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
wx
.
CallAfter
(
i
.
Enable
)
wx
.
CallAfter
(
i
.
Enable
)
# Enable XYButtons and ZButtons
# Enable XYButtons and ZButtons
self
.
xyb
.
enable
(
)
wx
.
CallAfter
(
self
.
xyb
.
enable
)
self
.
zb
.
enable
(
)
wx
.
CallAfter
(
self
.
zb
.
enable
)
if
self
.
filename
:
if
self
.
filename
:
wx
.
CallAfter
(
self
.
printbtn
.
Enable
)
wx
.
CallAfter
(
self
.
printbtn
.
Enable
)
...
@@ -1327,8 +1327,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -1327,8 +1327,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
wx
.
CallAfter
(
i
.
Disable
)
wx
.
CallAfter
(
i
.
Disable
)
# Disable XYButtons and ZButtons
# Disable XYButtons and ZButtons
self
.
xyb
.
disable
(
)
wx
.
CallAfter
(
self
.
xyb
.
disable
)
self
.
zb
.
disable
(
)
wx
.
CallAfter
(
self
.
zb
.
disable
)
if
self
.
paused
:
if
self
.
paused
:
self
.
p
.
paused
=
0
self
.
p
.
paused
=
0
...
...
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