Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pyDccDisplayer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
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
DigitalDynamicMeasurement
pyDccDisplayer
Commits
72f910f9
Commit
72f910f9
authored
1 year ago
by
Vanessa Stehr
Browse files
Options
Downloads
Patches
Plain Diff
Use themes to apply stylesheet globally
parent
1abb1dc8
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
src/main.py
+10
-2
10 additions, 2 deletions
src/main.py
with
10 additions
and
2 deletions
src/main.py
+
10
−
2
View file @
72f910f9
...
...
@@ -5,7 +5,8 @@ import tarfile
import
warnings
from
bokeh.plotting
import
curdoc
from
bokeh.layouts
import
column
from
bokeh.models
import
FileInput
,
Div
,
CustomJS
,
Button
,
TabPanel
,
Tabs
,
Dropdown
,
GlobalInlineStyleSheet
from
bokeh.models
import
FileInput
,
Div
,
CustomJS
,
Button
,
TabPanel
,
Tabs
,
Dropdown
,
InlineStyleSheet
from
bokeh.themes
import
Theme
from
pyDsiVectorsAndTables.pyDsiVectorsAndTables
import
(
dsiVector
,
dsiMultiVector
,
...
...
@@ -32,6 +33,13 @@ class page:
curdoc
().
template_variables
[
"
VERSION
"
]
=
VERSION
curdoc
().
add_root
(
self
.
tabs
)
curdoc
().
theme
=
Theme
(
json
=
dict
(
attrs
=
dict
(
UIElement
=
dict
(
stylesheets
=
[
self
.
stylesheet
]),
),
),
)
# curdoc().add_root(self.fileUploader.layout)
# curdoc().add_root(self.fileDownloader.layout)
# curdoc().add_root(self.dataView.layout)
...
...
@@ -290,5 +298,5 @@ class fileDownloader:
self
.
fileDownloadMessage
.
css_classes
=
css_classes
stylesheet
=
Global
InlineStyleSheet
(
css
=
open
(
"
static/css/styles.css
"
).
read
())
stylesheet
=
InlineStyleSheet
(
css
=
open
(
"
static/css/styles.css
"
).
read
())
thisPage
=
page
(
stylesheet
)
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