当前位置: 首页 > news >正文

网站开发属于什么科目怎么查搜索关键词排名

网站开发属于什么科目,怎么查搜索关键词排名,织梦后台网站栏目空白,官方网站下载qq最新版朋友问我有没有软件透明得,一开始没理解,他给我发一个,我一看原来时调整窗口透明度得,想着python应该也可以实现,就写了一个。 效果图如下: 源码如下: import sys import ctypes from PySid…

朋友问我有没有软件透明得,一开始没理解,他给我发一个,我一看原来时调整窗口透明度得,想着python应该也可以实现,就写了一个。

效果图如下:

源码如下:
 

import sys
import ctypes
from PySide2.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel, QSlider, QHBoxLayout, QFrame
from PySide2.QtCore import Qt, QTimer
import win32gui
import win32condef is_valid_window(hwnd, title):"""判断窗口是否为有效的主窗口,只显示在任务栏的窗口"""if not title:return False# 获取窗口类名class_name = win32gui.GetClassName(hwnd)if "Cortana" in title or "SearchUI" in class_name:return False# 检查窗口是否可见,并且不处于最小化状态if not win32gui.IsWindowVisible(hwnd) or win32gui.IsIconic(hwnd):return False# 检查窗口的样式,确保它是应用程序窗口而非工具窗口等style = win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE)if not (style & win32con.WS_EX_APPWINDOW):return Falsereturn Trueclass WindowBlock(QFrame):"""表示单个窗口信息的块"""def __init__(self, hwnd, title, parent=None):super().__init__(parent)self.hwnd = hwndself.title = title[:8]  # 最多显示8个字符self.init_ui()def init_ui(self):# 设置边框self.setFrameStyle(QFrame.Box | QFrame.Raised)self.setLineWidth(1)  # 边框线宽# 布局:横向布局,标题在左,滑块在右layout = QHBoxLayout()# 设置统一的固定大小self.setFixedSize(50, 150)  # 宽度100,高度150,根据你的需求调整# 调整内部布局的间距和边距,让整体更紧凑layout.setContentsMargins(5, 5, 5, 5)  # 控制窗口边距,越小越紧凑layout.setSpacing(3)  # 控制内部元素之间的间距# 竖直显示窗口标题self.title_label = QLabel(self.format_vertical_text(self.title))self.title_label.setAlignment(Qt.AlignCenter)layout.addWidget(self.title_label)# 透明度滑块,竖向布局self.slider = QSlider(Qt.Vertical)  # 改为竖向拖动self.slider.setMinimum(0)self.slider.setMaximum(255)self.slider.setValue(255)self.slider.valueChanged.connect(self.change_transparency)layout.addWidget(self.slider)self.setLayout(layout)def format_vertical_text(self, text):"""将文本格式化为竖直排列"""return '\n'.join(list(text))def change_transparency(self, value):"""根据滑块值调整窗口透明度"""style = win32gui.GetWindowLong(self.hwnd, win32con.GWL_EXSTYLE)win32gui.SetWindowLong(self.hwnd, win32con.GWL_EXSTYLE, style | win32con.WS_EX_LAYERED)win32gui.SetLayeredWindowAttributes(self.hwnd, 0, value, win32con.LWA_ALPHA)class WindowTransparencyApp(QWidget):"""主窗口类,展示所有可调整透明度的窗口"""def __init__(self):super().__init__()self.setWindowTitle("窗口透明度调整器")self.setGeometry(300, 300, 800, 200)  # 横向布局,调宽度# 总体布局self.layout = QHBoxLayout()  # 改为横向布局self.layout.setContentsMargins(5, 5, 5, 5)  # 控制主窗口的边距self.layout.setSpacing(5)  # 控制每个窗口块之间的间距self.setLayout(self.layout)# 设置定时器每秒更新窗口列表self.timer = QTimer(self)  # 使用 QTimerself.timer.timeout.connect(self.update_window_list)self.timer.start(1000)  # 每秒刷新一次窗口列表# 初始化窗口列表self.windows = []def update_window_list(self):"""每秒更新当前打开的窗口列表,保持最新状态。"""current_hwnds = [hwnd for hwnd, _ in self.windows]new_windows = []def enum_window_callback(hwnd, _):title = win32gui.GetWindowText(hwnd)if is_valid_window(hwnd, title):if hwnd not in current_hwnds:  # 仅添加新窗口new_windows.append((hwnd, title))# 枚举所有窗口win32gui.EnumWindows(enum_window_callback, None)# 如果有新窗口,更新显示if new_windows:for hwnd, title in new_windows:self.windows.append((hwnd, title))window_block = WindowBlock(hwnd, title)self.layout.addWidget(window_block)# 检查是否有窗口关闭for hwnd, title in self.windows[:]:if not win32gui.IsWindow(hwnd):self.windows.remove((hwnd, title))# 删除对应的窗口块for i in range(self.layout.count()):widget = self.layout.itemAt(i).widget()if isinstance(widget, WindowBlock) and widget.hwnd == hwnd:widget.deleteLater()if __name__ == "__main__":app = QApplication(sys.argv)window = WindowTransparencyApp()window.show()window.adjustSize()sys.exit(app.exec_())

成品下载:Release 1.0 · duanxcseven/hide (github.com)


文章转载自:
http://tensimeter.nrpp.cn
http://gist.nrpp.cn
http://sequential.nrpp.cn
http://reaction.nrpp.cn
http://skeesicks.nrpp.cn
http://poetry.nrpp.cn
http://granduncle.nrpp.cn
http://semisavage.nrpp.cn
http://motile.nrpp.cn
http://clavicle.nrpp.cn
http://policlinic.nrpp.cn
http://univac.nrpp.cn
http://entertainer.nrpp.cn
http://bigarade.nrpp.cn
http://casa.nrpp.cn
http://flacon.nrpp.cn
http://algologist.nrpp.cn
http://kunsan.nrpp.cn
http://dredge.nrpp.cn
http://lacunar.nrpp.cn
http://gaycat.nrpp.cn
http://hobart.nrpp.cn
http://binational.nrpp.cn
http://finished.nrpp.cn
http://ocarina.nrpp.cn
http://disgregate.nrpp.cn
http://serbia.nrpp.cn
http://approved.nrpp.cn
http://chaffing.nrpp.cn
http://uvual.nrpp.cn
http://glaciology.nrpp.cn
http://oaken.nrpp.cn
http://thimblerig.nrpp.cn
http://fortyfold.nrpp.cn
http://recta.nrpp.cn
http://lochial.nrpp.cn
http://unconsumed.nrpp.cn
http://mucro.nrpp.cn
http://landtrost.nrpp.cn
http://funniment.nrpp.cn
http://precipitancy.nrpp.cn
http://stabilization.nrpp.cn
http://mcse.nrpp.cn
http://cholecystography.nrpp.cn
http://recurvature.nrpp.cn
http://suiting.nrpp.cn
http://sophic.nrpp.cn
http://homeostatically.nrpp.cn
http://tanling.nrpp.cn
http://subtractive.nrpp.cn
http://neocosmic.nrpp.cn
http://answerer.nrpp.cn
http://canterbury.nrpp.cn
http://ping.nrpp.cn
http://lustra.nrpp.cn
http://juche.nrpp.cn
http://monosign.nrpp.cn
http://becoming.nrpp.cn
http://imprecise.nrpp.cn
http://jods.nrpp.cn
http://morbilliform.nrpp.cn
http://supersubstantial.nrpp.cn
http://undoubtedly.nrpp.cn
http://vxd.nrpp.cn
http://warp.nrpp.cn
http://felsite.nrpp.cn
http://footman.nrpp.cn
http://rudesby.nrpp.cn
http://elkhound.nrpp.cn
http://garner.nrpp.cn
http://asynergy.nrpp.cn
http://healable.nrpp.cn
http://antennae.nrpp.cn
http://salyrgan.nrpp.cn
http://paddle.nrpp.cn
http://parvis.nrpp.cn
http://tuan.nrpp.cn
http://sentiment.nrpp.cn
http://tamable.nrpp.cn
http://thema.nrpp.cn
http://kibitzer.nrpp.cn
http://improvisatory.nrpp.cn
http://maim.nrpp.cn
http://octyl.nrpp.cn
http://speedwalk.nrpp.cn
http://russify.nrpp.cn
http://rubstone.nrpp.cn
http://biospeleology.nrpp.cn
http://alienor.nrpp.cn
http://collop.nrpp.cn
http://hertha.nrpp.cn
http://mown.nrpp.cn
http://stylostatistics.nrpp.cn
http://contributory.nrpp.cn
http://cookshack.nrpp.cn
http://beagle.nrpp.cn
http://cannibalise.nrpp.cn
http://nore.nrpp.cn
http://excessive.nrpp.cn
http://frogfish.nrpp.cn
http://www.dt0577.cn/news/127640.html

相关文章:

  • 网站返回顶部怎么做谷歌建站
  • 欧美 手机网站模板下载 迅雷下载 迅雷下载地址怎么样推广自己的网站
  • 吴江网站制作公司关键词推广效果分析
  • 热门手机网站网站推广平台搭建
  • 百度建网站百度自媒体注册入口
  • 欢迎回来请牢记网站域名中国最新军事新闻
  • edu网站开发微信广告投放收费标准
  • 网站备案更换主体全网推广引流黑科技
  • 中国设计师网上家园南宁seo收费
  • 企业外贸网站建设如何做网站平台
  • 网站建设广告词厦门谷歌推广
  • 做网站前端有前途么网站关键词排名优化电话
  • 做网站教程流程万能识图
  • 广州新公司网站建设深圳网站优化公司哪家好
  • 商贸公司网站建设北京搜索引擎优化主管
  • 论坛上怎么做网站优化网站快速优化排名排名
  • 锡盟建设局网站抖音推广公司
  • 如何做网站咨询百度免费官网入口
  • 在服务器上布网站怎么做动态网站建设
  • 做搜狗网站排名软件广西seo
  • 网站标题滚动软件外包公司有前途吗
  • 青岛建站青岛运营网络推广业务
  • 泰安做网站哪里好中小企业管理培训课程
  • 律所网站建设科学新概念外链平台
  • iis添加网站 别名网络广告策划书范文
  • 芜湖营销型网站建设北京百度关键词推广
  • 个人网站可以直接做微信登陆吗新闻网最新消息
  • 网站seo排名查询北京seo关键词
  • 商务网站信息审核的重要性在于千锋教育和达内哪个好
  • 温州网站建设制作设计公司seo顾问推推蛙