Skip to content

Commit 65274ac

Browse files
authored
Resizing Control #19
1 parent b4fcd80 commit 65274ac

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

pypulse/Window/app.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def OnInit(self):
2222
border_less=self.kwargs.get('border_less'),
2323
caption = self.kwargs.get('titlebar_caption'),
2424
maximize = self.kwargs.get('titlebar_no_button_maximize'),
25-
minimize = self.kwargs.get('titlebar_no_button_minimize'))
25+
minimize = self.kwargs.get('titlebar_no_button_minimize'),
26+
resize = self.kwargs.get('resize', True)
27+
)
2628

2729
log(LogTypes.SUCCESS, 'CEF initialized')
2830
print()

pypulse/Window/frames.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def __init__(self,
4848
border_less: bool = True,
4949
maximize: bool = None,
5050
minimize: bool = None,
51-
caption = None) -> None:
51+
caption = None,
52+
resize = True
53+
) -> None:
5254

5355
self.title = title
5456
self.icon = icon
@@ -82,6 +84,10 @@ def __init__(self,
8284

8385
if minimize:
8486
style = style & (~wx.MINIMIZE_BOX)
87+
88+
if not resize:
89+
style = style & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX)
90+
8591

8692
self.SetWindowStyle(style)
8793

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
long_description_content_type="text/markdown",
1616
author='Vasile Ovidiu Ichim',
1717
license='MIT',
18-
install_requires=['cefpython3==66.1', 'Jinja2==3.1.2', 'wxPython==4.2.1'],
18+
install_requires=['cefpython3==66.1', 'Jinja2==3.1.2', 'wxPython==4.2.1', 'requests'],
1919
classifiers=[
20-
# Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
21-
'Development Status :: 4 - Beta',
22-
# Define that your audience are developers
20+
'Development Status :: 5 - Stable',
2321
'Intended Audience :: Developers',
2422
'Topic :: Software Development :: Build Tools',
25-
'License :: OSI Approved :: MIT License', # Again, pick a license
23+
'License :: OSI Approved :: MIT License',
2624
'Programming Language :: Python :: 3.8',
2725
'Programming Language :: Python :: 3.9',
2826
],

0 commit comments

Comments
 (0)