Skip to main content
# -*- coding: utf-8 -*-
#~ #----------------------------------------------------------------------------
#~ module:wlab
#~ 吴徐平的python科学计算文件
#~ Data: 2013-08-08,星期四
#~ Author:吴徐平
#~ Email:539688300@qq.com
#~ #----------------------------------------------------------------------------
#~ # main test program for __WPyQtInput__.py
#~ #----------------------------------------------------------------------------
if __name__ == '__main__':
from wlab import *
import sys
app = QtGui.QApplication(sys.argv)#创建Qt进程app
#---------------------------------------------------------------------------
#示例1
values={'String':'This is String','float':-3.5,'int':-15}
GroupBoxTitle='Please set values'
title='the first example of QInputBox '
rvalues=QInputBox(values=values,GroupBoxTitle=GroupBoxTitle,title=title)
print(rvalues)
#>>>{'int': -15, 'float': -3.5, 'String': 'This is String'}
#---------------------------------------------------------------------------
#示例2
from collections import OrderedDict
values=OrderedDict([('c', 1), (2, 2), ('a', 3)])
rvalues1=QInputBox(values=values)
print(rvalues1)
#>>>OrderedDict([('c', 1), (2, 2), ('a', 3)])
#---------------------------------------------------------------------------
#示例3
values={'String':'This is String','float':-3.5,'int':-15}
GroupBoxTitle='Please set values'
title='QInputBox'
rvalues2=QInputBox(values=values,GroupBoxTitle=GroupBoxTitle,title=title)
print(rvalues2)
#>>>{'int': -15, 'float': -3.5, 'String': 'This is String'}
#---------------------------------------------------------------------------
sys.exit(app.exec_())
#******************************************************************************************
#*可以方便的读写文本文件,对数据的格式几乎没有任何限制,只要里面有数据就可以读出
#******************************************************************************************
#~ #主程序测试
if __name__ == '__main__':
x=numpy.random.randn(3,4)
print(x)
Filename='x.txt'
header='look at this file'
dlmwrite(Filename,x,header=header)
y=dlmread(Filename)
print(y)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wlab-1.1.5.tar.gz (6.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

wlab-1.1.5.win32.exe (203.9 kB view details)

Uploaded Source

wlab-1.1.5.linux-x86_64.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file wlab-1.1.5.tar.gz.

File metadata

  • Download URL: wlab-1.1.5.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wlab-1.1.5.tar.gz
Algorithm Hash digest
SHA256 1f972c3509c75deed5de3dbb7fd8ebea39a7a55c3d93fdd7c38789539c61ac0a
MD5 7dae4d8f5660a04feff99ebdd60930b8
BLAKE2b-256 08d96bb6ebe0adf77c5be25f3f81a2b8a1b29ff718fc9a33a9938668d4f638b6

See more details on using hashes here.

File details

Details for the file wlab-1.1.5.win32.exe.

File metadata

  • Download URL: wlab-1.1.5.win32.exe
  • Upload date:
  • Size: 203.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wlab-1.1.5.win32.exe
Algorithm Hash digest
SHA256 3351b6cc91fe00f685695cdc2643dc9119c4714115ea421c7ca2ae3fc5fdd0e0
MD5 5bf86d72c7a96a66e3d2b810087ec56a
BLAKE2b-256 43d69769fb18c632d45e4b4a7b854675449682a241143aae72d69f96c9f22f0b

See more details on using hashes here.

File details

Details for the file wlab-1.1.5.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for wlab-1.1.5.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 52083677943bb0c030a3c66fe11c39852dfbaf99ce7e54cf09a8efd5e875fe07
MD5 1f3978139a8898060948bcc04309ce92
BLAKE2b-256 1c7ce3358e618c976054a81d010491b10f8cf15106ba710ce8f3865a6e0eee25

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.5 This release

3 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page