Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
1e1a3cb2
Commit
1e1a3cb2
authored
10 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Added underscore to draw/resize methods, as they should never be called externally
parent
fe2cd1f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/fslview/slicecanvas.py
+4
-4
4 additions, 4 deletions
fsl/fslview/slicecanvas.py
with
4 additions
and
4 deletions
fsl/fslview/slicecanvas.py
+
4
−
4
View file @
1e1a3cb2
...
...
@@ -267,7 +267,7 @@ class SliceCanvas(wxgl.GLCanvas):
self
.
glReady
=
False
# All the work is done by the draw method
self
.
Bind
(
wx
.
EVT_PAINT
,
self
.
draw
)
self
.
Bind
(
wx
.
EVT_PAINT
,
self
.
_
draw
)
# When the image list changes, refresh the
# display, and update the display bounds
...
...
@@ -470,7 +470,7 @@ class SliceCanvas(wxgl.GLCanvas):
return
width
,
height
def
resize
(
self
):
def
_
resize
(
self
):
"""
Sets up the GL canvas size, viewport, and
projection. This method is called by draw(),
...
...
@@ -516,7 +516,7 @@ class SliceCanvas(wxgl.GLCanvas):
gl
.
glTranslatef
(
*
trans
)
def
draw
(
self
,
ev
):
def
_
draw
(
self
,
ev
):
"""
Draws the currently selected slice to the canvas.
"""
...
...
@@ -527,7 +527,7 @@ class SliceCanvas(wxgl.GLCanvas):
return
self
.
context
.
SetCurrent
(
self
)
self
.
resize
()
self
.
_
resize
()
# clear the canvas
gl
.
glClear
(
gl
.
GL_COLOR_BUFFER_BIT
|
gl
.
GL_DEPTH_BUFFER_BIT
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment