pyloid 0.23.19__tar.gz → 0.23.20__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -198,4 +198,4 @@ Apache License
198
198
  distributed under the License is distributed on an "AS IS" BASIS,
199
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
200
  See the License for the specific language governing permissions and
201
- limitations under the License.
201
+ limitations under the License.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.23.19
3
+ Version: 0.23.20
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyloid"
3
- version = "0.23.19"
3
+ version = "0.23.20"
4
4
  description = ""
5
5
  authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
6
6
  readme = "README.md"
@@ -93,13 +93,6 @@ def custom_message_handler(mode, context, message):
93
93
 
94
94
  qInstallMessageHandler(custom_message_handler)
95
95
 
96
-
97
- class _WindowController(QObject):
98
- create_window_signal = Signal(
99
- QApplication, str, int, int, int, int, bool, bool, bool, PyloidRPC
100
- )
101
-
102
-
103
96
  # Only Work in Main Thread
104
97
  class _Pyloid(QApplication):
105
98
  def __init__(
@@ -151,10 +144,7 @@ class _Pyloid(QApplication):
151
144
  if self.single_instance:
152
145
  self._init_single_instance()
153
146
 
154
- self.controller = _WindowController()
155
- self.controller.create_window_signal.connect(
156
- self._create_window_signal_function
157
- )
147
+
158
148
 
159
149
  self.file_watcher = FileWatcher()
160
150
 
@@ -289,38 +279,8 @@ class _Pyloid(QApplication):
289
279
  >>> window = app.create_window(title="New Window", width=1024, height=768)
290
280
  >>> window.show()
291
281
  """
292
- self.controller.create_window_signal.emit(
293
- self,
294
- title,
295
- width,
296
- height,
297
- x,
298
- y,
299
- frame,
300
- context_menu,
301
- dev_tools,
302
- rpc,
303
- )
304
- latest_window_id = list(self.windows_dict.keys())[-1]
305
- return self.windows_dict[latest_window_id]
306
-
307
- def _create_window_signal_function(
308
- self,
309
- app,
310
- title: str,
311
- width: int,
312
- height: int,
313
- x: int,
314
- y: int,
315
- frame: bool,
316
- context_menu: bool,
317
- dev_tools: bool,
318
- # js_apis: List[PyloidAPI] = [],
319
- rpc: Optional[PyloidRPC] = None,
320
- ) -> BrowserWindow:
321
- """Function to create a new browser window."""
322
282
  window = BrowserWindow(
323
- app,
283
+ self,
324
284
  title,
325
285
  width,
326
286
  height,
@@ -332,6 +292,7 @@ class _Pyloid(QApplication):
332
292
  rpc,
333
293
  )
334
294
  self.windows_dict[window._window.id] = window
295
+ # latest_window_id = list(self.windows_dict.keys())[-1]
335
296
  return window
336
297
 
337
298
  def run(self):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes