当前位置: 首页>>代码示例>>Python>>正文


Python pyqtgraph.mkQApp方法代码示例

本文整理汇总了Python中pyqtgraph.mkQApp方法的典型用法代码示例。如果您正苦于以下问题:Python pyqtgraph.mkQApp方法的具体用法?Python pyqtgraph.mkQApp怎么用?Python pyqtgraph.mkQApp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyqtgraph的用法示例。


在下文中一共展示了pyqtgraph.mkQApp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: open_cataloguewindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def open_cataloguewindow():
    dataio = DataIO(dirname=dirname)
    catalogueconstructor = CatalogueConstructor(dataio=dataio)
    
    app = pg.mkQApp()
    win = CatalogueWindow(catalogueconstructor)
    win.show()
    
    app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:11,代码来源:example_kampff_dataset.py

示例2: open_PeelerWindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def open_PeelerWindow():
    dataio = DataIO(dirname=dirname)
    initial_catalogue = dataio.load_catalogue(chan_grp=1)

    app = pg.mkQApp()
    win = PeelerWindow(dataio=dataio, catalogue=initial_catalogue)
    win.show()
    app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:10,代码来源:example_kampff_dataset.py

示例3: open_PeelerWindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def open_PeelerWindow():
    dataio = DataIO(dirname=dirname)
    print(dataio)
    initial_catalogue = dataio.load_catalogue(chan_grp=0)

    app = pg.mkQApp()
    win = PeelerWindow(dataio=dataio, catalogue=initial_catalogue)
    win.show()
    app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:11,代码来源:example_olfactory_bulb_dataset.py

示例4: setup_catalogue

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def setup_catalogue():
    if os.path.exists('tridesclous_onlinepeeler'):
        shutil.rmtree('tridesclous_onlinepeeler')
    
    dataio = DataIO(dirname='tridesclous_onlinepeeler')
    
    localdir, filenames, params = download_dataset(name='olfactory_bulb')
    filenames = filenames[:1] #only first file
    dataio.set_data_source(type='RawData', filenames=filenames, **params)
    channel_group = {0:{'channels':[5, 6, 7, 8]}}
    dataio.set_channel_groups(channel_group)
    
    
    
    
    catalogueconstructor = CatalogueConstructor(dataio=dataio)
    
    params = get_auto_params_for_catalogue(dataio, chan_grp=0)
    apply_all_catalogue_steps(catalogueconstructor, params, verbose=True)
    




    catalogueconstructor = CatalogueConstructor(dataio=dataio)
    app = pg.mkQApp()
    win = CatalogueWindow(catalogueconstructor)
    win.show()
    app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:31,代码来源:online_low_level_demo.py

示例5: open_catalogue_window

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def open_catalogue_window():
    dataio = DataIO(dirname='test_peeler')
    catalogueconstructor = CatalogueConstructor(dataio=dataio)
    app = pg.mkQApp()
    win = CatalogueWindow(catalogueconstructor)
    win.show()
    app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:9,代码来源:test_peeler.py

示例6: open_PeelerWindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def open_PeelerWindow():
    dataio = DataIO(dirname='test_peeler')
    #~ dataio = DataIO(dirname='test_peeler2')
    initial_catalogue = dataio.load_catalogue(chan_grp=0)

    app = pg.mkQApp()
    win = PeelerWindow(dataio=dataio, catalogue=initial_catalogue)
    win.show()
    app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:11,代码来源:test_peeler.py

示例7: test_PeelerTraceViewer

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_PeelerTraceViewer():
    controller = get_controller()
    
    app = pg.mkQApp()
    traceviewer = PeelerTraceViewer(controller=controller)
    traceviewer.show()
    traceviewer.resize(800,600)
    
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:12,代码来源:test_peelerwindow.py

示例8: test_SpikeList

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_SpikeList():
    controller = get_controller()
    
    app = pg.mkQApp()
    traceviewer = SpikeList(controller)
    traceviewer.show()
    traceviewer.resize(800,600)
    
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:12,代码来源:test_peelerwindow.py

示例9: test_ClusterSpikeList

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_ClusterSpikeList():
    controller = get_controller()
    
    app = pg.mkQApp()
    traceviewer = ClusterSpikeList(controller)
    traceviewer.show()
    traceviewer.resize(800,600)
    
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:12,代码来源:test_peelerwindow.py

示例10: test_ISIViewer

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_ISIViewer():
    controller = get_controller()
    for k in controller.cluster_labels:
        controller.cluster_visible[k] = False
    for k in controller.cluster_labels[3:6]:
        controller.cluster_visible[k] = True
    #~ print(controller.cluster_visible)
    
    app = pg.mkQApp()
    isiviewer = ISIViewer(controller)
    isiviewer.show()
    isiviewer.refresh()
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:16,代码来源:test_peelerwindow.py

示例11: test_CrossCorrelogramViewer

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_CrossCorrelogramViewer():
    controller = get_controller()
    for k in controller.cluster_labels:
        controller.cluster_visible[k] = False
    for k in controller.cluster_labels[3:6]:
        controller.cluster_visible[k] = True
    #~ print(controller.cluster_visible)
    
    app = pg.mkQApp()
    ccgviewer = CrossCorrelogramViewer(controller)
    ccgviewer.show()
    ccgviewer.refresh()
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:16,代码来源:test_peelerwindow.py

示例12: test_PeelerWindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_PeelerWindow():
    dataio = DataIO(dirname='test_peelerwindow')
    initial_catalogue = dataio.load_catalogue(chan_grp=0)

    app = pg.mkQApp()
    win = PeelerWindow(dataio=dataio, catalogue=initial_catalogue)
    win.show()
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:11,代码来源:test_peelerwindow.py

示例13: test_MainWindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_MainWindow():
    app = pg.mkQApp()
    win = MainWindow()
    win.show()
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:8,代码来源:test_mainwindow.py

示例14: test_InitializeDatasetWindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def test_InitializeDatasetWindow():
    app = pg.mkQApp()
    win = InitializeDatasetWindow()
    win.show()
    if __name__ == '__main__':
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:8,代码来源:test_initializedatasetwindow.py

示例15: open_mainwindow

# 需要导入模块: import pyqtgraph [as 别名]
# 或者: from pyqtgraph import mkQApp [as 别名]
def open_mainwindow():
        app = pg.mkQApp()
        win = tdc.MainWindow()
        win.show()
        app.exec_() 
开发者ID:tridesclous,项目名称:tridesclous,代码行数:7,代码来源:tdc.py


注:本文中的pyqtgraph.mkQApp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。