python爬虫百度地图的信息界面的实现方法-创新互联

在爬虫百度地图的期间,就为它做了一个界面,运用的是PyQt5。

创新互联建站长期为数千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为伊美企业提供专业的网站设计、成都网站建设伊美网站改版等技术服务。拥有十多年丰富建站经验和众多成功案例,为您定制开发。

得到意想不到的结果:

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'E:\pycharm_workspase\sprider_baidumap\src\view\provinces.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
  def setupUi(self, Form):
    Form.setObjectName("Form")
    Form.resize(589, 500)

    self.comboBox_city = QtWidgets.QComboBox(Form)
    self.comboBox_city.setGeometry(QtCore.QRect(50, 60, 161, 31))
    self.comboBox_city.setEditable(True)
    self.comboBox_city.setCurrentText("")
    self.comboBox_city.setIconSize(QtCore.QSize(20, 20))
    self.comboBox_city.setObjectName("comboBox_city")

    self.result = QtWidgets.QTextBrowser(Form)
    self.result.setGeometry(QtCore.QRect(50, 150, 481, 300))
    self.result.setEnabled(False)
    font = QtGui.QFont()
    font.setBold(False)
    font.setWeight(50)
    self.result.setFont(font)
    self.result.setObjectName("result")

    self.keyWord = QtWidgets.QTextEdit(Form)
    self.keyWord.setEnabled(True)
    self.keyWord.setGeometry(QtCore.QRect(230, 60, 151, 31))
    self.keyWord.setObjectName("keyWord")

    self.pushButton = QtWidgets.QPushButton(Form)
    self.pushButton.setGeometry(QtCore.QRect(400, 60, 131, 31))
    self.pushButton.setObjectName("pushButton")

    self.label = QtWidgets.QLabel(Form)
    self.label.setGeometry(QtCore.QRect(50, 110, 111, 31))
    font = QtGui.QFont()
    font.setFamily("Arial Black")
    font.setPointSize(14)
    font.setBold(True)
    font.setWeight(75)
    self.label.setFont(font)
    self.label.setObjectName("label")

    self.retranslateUi(Form)
    QtCore.QMetaObject.connectSlotsByName(Form)

  def retranslateUi(self, Form):
    _translate = QtCore.QCoreApplication.translate
    Form.setWindowTitle(_translate("Form", "百度地图商家信息列表"))
    self.pushButton.setText(_translate("Form", "确定"))
    self.label.setText(_translate("Form", "查询结果:"))

标题名称:python爬虫百度地图的信息界面的实现方法-创新互联
网站链接:http://myzitong.com/article/cedhcc.html