Skip to content
Snippets Groups Projects
Commit 06100970 authored by Arnaud HEMMERLE's avatar Arnaud HEMMERLE
Browse files

Add two levels of remarks in insert text.

parent 23632d9f
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
## v3.2.3 ## v3.2.3
- Add the possibility to print the mean values of selected sensors in GIXS, GIXD, area_detector, XRF. - Add the possibility to print the mean values of selected sensors in GIXS, GIXD, area_detector, XRF.
- Add two levels of remarks in insert text.
## v3.2.2 ## v3.2.2
- Flyscan update: add the possibility to read nexus files generated by the flyscan. Works for plot 1D, plot images, and plot GIXD. - Flyscan update: add the possibility to read nexus files generated by the flyscan. Works for plot 1D, plot images, and plot GIXD.
......
...@@ -45,7 +45,8 @@ def display_widgets_insert_text(): ...@@ -45,7 +45,8 @@ def display_widgets_insert_text():
if dw['level'].value == 'SubSubTitle': if dw['level'].value == 'SubSubTitle':
text_to_print = '### '+text_to_print text_to_print = '### '+text_to_print
if dw['level'].value == 'Remark': if 'Remark' in dw['level'].value:
print(dw['level'].value)
# Max number of characters allowed by line # Max number of characters allowed by line
max_length = 50 max_length = 50
...@@ -73,7 +74,10 @@ def display_widgets_insert_text(): ...@@ -73,7 +74,10 @@ def display_widgets_insert_text():
for text_block in text_blocks: for text_block in text_blocks:
if text_block != '': if text_block != '':
if dw['level'].value == 'Big Remark':
text_to_print.append('$\\Large \\color{red}{\\textbf{%s}}$'%(' '.join(text_block.split(' ')))) text_to_print.append('$\\Large \\color{red}{\\textbf{%s}}$'%(' '.join(text_block.split(' '))))
if dw['level'].value == 'Remark':
text_to_print.append('$\\large \\color{red}{\\textbf{%s}}$'%(' '.join(text_block.split(' '))))
# Cells need to be created backwards # Cells need to be created backwards
text_to_print.reverse() text_to_print.reverse()
...@@ -99,7 +103,7 @@ def display_widgets_insert_text(): ...@@ -99,7 +103,7 @@ def display_widgets_insert_text():
# Title, subtitle ... # Title, subtitle ...
dw['level'] = iwid.Dropdown( dw['level'] = iwid.Dropdown(
options=['Title', 'SubTitle', 'SubSubTitle', 'Simple text', 'Remark'], options=['Title', 'SubTitle', 'SubSubTitle', 'Simple text', 'Big Remark', 'Remark'],
value='Simple text', value='Simple text',
description='Format:', description='Format:',
layout=iwid.Layout(width='200px'), layout=iwid.Layout(width='200px'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment