當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。