dialog

How to remove page background for Jquery Mobile Dialog?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-10 02:04:11
问题 The dialog itself only occupies about 10% of the page and I wanted to remove or turn the dialog's page background into transparent so that the previous page will still be visible. This is the js that calls the dialog: $.mobile.changePage('#popdiv',{transition:'slide', role:'dialog'}); and this is the div <div data-role="page" id="popdiv" data-role="page" data-theme="e"> <div data-role="content"> <h1>Congrats!</h1> </div> </div> I tried using custom css but it doesn't seem to change anything

Windows环境下利用PyQt5进行GUI程序的快速开发1——Pycharm的配置

邮差的信 提交于 2020-01-10 00:16:20
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 环境配置 安装PyQt5 使用pip进行安装,使用Pycharm时,更加简单,直接搜索即可。 除了pyqt5,还有pyqt5-tools,包含一些pyqt5常用的工具。 pip install pyqt5 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com pip install pyqt5-tools -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com 设置Qt Designer 安装完pyqt5-tools之后,就可以设置Qt Designer了,这样我们通过拖拽就能快速实现界面的绘制了。 Settings-Tools-External Tools里添加Qt Designer, Program里选择designer.exe的路径,完整路径为D:\Python\Python37\Lib\site-packages\pyqt5_tools\Qt\bin\designer.exe Working directory选择Insert Macros,选择File - directory 示例: 此时,Qt

dialog显示后 软键盘自动关闭

亡梦爱人 提交于 2020-01-09 16:42:18
项目在做监听输入框的时候发现一搜索 软件盘就自动关闭了:经过一系列debug才发现才是dialog的问题(脑壳疼)。 在过程中选择使用AlertDailog 和 progressDialog发现 没有这样的问题。 dialog需要创建一个属于自己的windows窗口,软键盘实际上也是dialog,他们都是依附于windows窗口的,所以由windows的属性老控制。 只要在dialog中设置: getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); 来源: CSDN 作者: linpaipai 链接: https://blog.csdn.net/linpaipai/article/details/103890721

How can I change text on a win32 window?

a 夏天 提交于 2020-01-09 08:09:05
问题 Looking for hints, tips and search terms for changing the text on a win32 window from C#. More specifically, I'm trying to change the text on the print dialog from "Print" to "OK", as I am using the dialog to create a print ticket and not do any printing. How can I find the dialog's window handle? Once I've got it, how would I go about finding the button in the child windows of the form? Once I've found that, how would I change the text on the button? And how can I do all this before the

jQuery UI Dialog individual CSS styling

混江龙づ霸主 提交于 2020-01-09 06:52:54
问题 I'm looking to style a modal dialog (using UI Dialog) with unique CSS that is separate from the traditional dialog, so in essence to have two jQuery dialogs that each look different. I've styled one, for example, <div id="dialog_style1" class="dialog1 hidden">One content</div> and another <div id="dialog_style2" class="dialog2 hidden">Another content</div> Unfortunately I've noticed that using separate CSS to style parts of the dialog box, like .dialog1 .ui-dialog-titlebar { display:none; }

jQuery UI Dialog individual CSS styling

点点圈 提交于 2020-01-09 06:52:00
问题 I'm looking to style a modal dialog (using UI Dialog) with unique CSS that is separate from the traditional dialog, so in essence to have two jQuery dialogs that each look different. I've styled one, for example, <div id="dialog_style1" class="dialog1 hidden">One content</div> and another <div id="dialog_style2" class="dialog2 hidden">Another content</div> Unfortunately I've noticed that using separate CSS to style parts of the dialog box, like .dialog1 .ui-dialog-titlebar { display:none; }

How to implement Yii2 Modal Dialog on Gridview view and update button?

为君一笑 提交于 2020-01-09 03:50:48
问题 I would like to implement Yii2 modal dialog box on my gridview when view or update button is clicked at each row. Can anyone kindly advise on how to implement it? With advice from arogachev: This is an update on my codes <?php //var_dump($dataProvider); $gridColumns = [ [ 'format' => 'html', 'attribute' => 'avatar', 'label'=>'Image', 'headerOptions' => ['width' => '80%',], ], [ 'class' => 'yii\grid\ActionColumn', 'template' => '{view} {delete}', 'headerOptions' => ['width' => '20%', 'class' =

Activity生命周期

北慕城南 提交于 2020-01-08 21:24:06
本篇博客是个备忘录,是我工作中遇到的生命周期方法调用的一些总结。 讲Activity的声明周期之前,先讲讲Actiivty的启动模式。其与Activity的声明周期和启动流程息息相关。 四大启动模式 1、Standard 模式 默认启动模式,每次启动一个activity都会重新创建一个新的实例,放入栈顶。因此启动时 onCreate、onStart、onResume 方法都会被调用。 // 伪代码 // 标准模式:走onCreate ---> onStart ---> onResume if(isStandard) { // 创建新的Activity实例 createNewActivity(); } 2、singleTop模式 singleTop模式,又叫栈顶复用模式,当前栈中已有该activity实例并且该实例位于栈顶,复用该activity,调用onNewIntent,onResume方法;其他都是重新创建实例。走 onCreate、onStart、onResume 流程。 // 伪代码 if(isStackTop) { // 已存在实例并且在任务栈栈顶,复用当前实例,走 onNewIntent ---> onResume reuseExistActivity(); } else { // 创建新的Activity实例,走onCreate ---> onStart --->

What is the right action to take upon closing windows in java/swing?

旧城冷巷雨未停 提交于 2020-01-08 14:35:14
问题 I just wrote this test code in my CustomUIPanel class: public static void main(String[] args) { final JDialog dialog = CustomUIPanel.createDialog(null, CustomUIPanel.selectFile()); dialog.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { System.exit(0); } }); } It works correctly if CustomUIPanel.main() is the program's entry point, but it makes me wonder something: what if another class called CustomUIPanel.main() for testing? Then my call to System

python selenium+pywin32+winspy64工具 完成百度上传图片识图功能

ⅰ亾dé卋堺 提交于 2020-01-07 13:17:23
import win32guiimport win32confrom selenium import webdriverimport timedef main(): driver = webdriver.Chrome() driver.maximize_window() driver.implicitly_wait(10) driver.get("http://www.baidu.com") driver.find_element_by_css_selector(".soutu-btn").click() str_js = 'document.getElementsByClassName("upload-pic")[0].click()' driver.execute_script(str_js) # 一定要等待windows窗口打开,再用pywin32api操作窗口 time.sleep(5) # 一级顶层窗口,此处title为上传窗口名称,浏览器不一样上传窗口名称不一样 dialog_1 = win32gui.FindWindow("#32770", "打开") # 二级窗口 dialog_2 = win32gui.FindWindowEx(dialog_1, 0, "ComboBoxEx32", None) # 三级窗口 dialog_3 = win32gui