示例#1
0
 def createMenuBar(self):
     bar = sidebar.sidebar()
     bar.addAction(
         sidebar.add_graph_action(bar, lambda event: self.addPlotWidget()))
     # bar.addAction(sidebar.delete_graph_action(bar, lambda event: self.addPlotWidget() ))
     # bar.addAction(sidebar.list_action(bar, self.showPlotView))
     return bar
示例#2
0
    def on_fuse_MountEvent(self, event):

        if self.sidebar is None or not self.sidebar.isMounted():
            self.sidebar = sidebar(self.itsView.repository)
            if sys.platform == 'darwin':
                mountpoint = '/Volumes/%s' %(MOUNT_NAME)
                self.sidebar.mount(mountpoint, volname=MOUNT_NAME)
            else:
                mountpoint = os.path.expanduser('~/%s' %(MOUNT_NAME))
                self.sidebar.mount(mountpoint)
        else:
            self.sidebar.umount()
示例#3
0
    def on_fuse_MountEvent(self, event):

        if self.sidebar is None or not self.sidebar.isMounted():
            self.sidebar = sidebar(self.itsView.repository)
            if sys.platform == 'darwin':
                mountpoint = '/Volumes/%s' % (MOUNT_NAME)
                self.sidebar.mount(mountpoint, volname=MOUNT_NAME)
            else:
                mountpoint = os.path.expanduser('~/%s' % (MOUNT_NAME))
                self.sidebar.mount(mountpoint)
        else:
            self.sidebar.umount()
 def createMenuBar(self):
     bar = sidebar.sidebar()
     bar.addAction(sidebar.add_graph_action(bar, lambda event: self.addPlotWidget() ))
     # bar.addAction(sidebar.delete_graph_action(bar, lambda event: self.addPlotWidget() ))
     # bar.addAction(sidebar.list_action(bar, self.showPlotView))
     return bar
示例#5
0
import streamlit as st
import pandas as pd
import numpy as np
import streamlit.components.v1 as components
# CUSTOM WIDGETS
import sidebar as sd
import os

df = pd.read_csv('Follow_Up_San_Diego.csv')

state_sidebar = sd.sidebar()

st.title('Offcorss DS4A 😎')

st.write(df)
st.line_chart(df)

img_file_buffer = st.file_uploader("Upload a video", type=["avi", "mp4"])
示例#6
0
from sidebar import sidebar
import streamlit as st
st.set_page_config(page_title='FQ Helper',layout = 'centered', initial_sidebar_state = 'collapsed')

hide_streamlit_style = """
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
</style>

"""
st.markdown(hide_streamlit_style, unsafe_allow_html=True) 
sidebar()