Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aniketrajnish/MultiWindowSync-PyQt
/ functions
Functions
41 in github.com/aniketrajnish/MultiWindowSync-PyQt
⨍
Functions
41
◇
Types & classes
2
↓ 3 callers
Method
loadImage
Load the Image/GIF into the window and apply the scaleFactor. Decides between QMovie and QPixmap based on the type of image.
src/ImageWindow.py:84
↓ 2 callers
Method
displayImagePreview
Display current image in image display area and scale the image to fit the display area while maintaining aspect ratio.
src/MainWindow.py:259
↓ 2 callers
Method
openNewWindow
Opens a new image window as a child of the main window. Connects signals for image position and window closing.
src/MainWindow.py:221
↓ 2 callers
Method
updateAllSettings
Single method to update all settings from the Main Window.
src/MainWindow.py:273
↓ 2 callers
Method
updateFunction
A timer to keep track and update the image's position until the window is moved. timeStep determines how often the update function is
src/ImageWindow.py:61
↓ 1 callers
Method
centerImage
Move the image/GIF to the center of the window.
src/ImageWindow.py:105
↓ 1 callers
Method
initBottomButtons
Initialize buttons to open a new Image Window or Quit the application.
src/MainWindow.py:179
↓ 1 callers
Method
initCheckBoxes
Initilize checkboxes for Image Settings.
src/MainWindow.py:136
↓ 1 callers
Method
initComponents
Initialize all the UI components that are defined below.
src/MainWindow.py:63
↓ 1 callers
Method
initImageDisplay
Initialize area for displaying image that will be diplayed in all the Image Windows.
src/MainWindow.py:171
↓ 1 callers
Method
initLayout
The layouts that make up the window are intialized here. This includes: - Central Layout (Widget) - Left Side Layout (Control
src/MainWindow.py:43
↓ 1 callers
Method
initMenuBar
Initializes a Menu Bar with options to load an image/gif and close all the windows that are open.
src/MainWindow.py:76
↓ 1 callers
Method
initRadioBtns
Initialize radio buttons to control the refresh rate of the update function of Image Windows.
src/MainWindow.py:152
↓ 1 callers
Method
initScaleSlider
Initialize a Slider for scaling the image. The values are scaled 100 folds to enable fine control and each step for a slider is an in
src/MainWindow.py:120
↓ 1 callers
Method
initSettings
The image path is assigned to the window as well as the update function to update the image position is initialized. The settings fro
src/ImageWindow.py:46
↓ 1 callers
Method
initStatusBar
Initalize a Status Bar to message about display different operations in the bottom of the screen.
src/MainWindow.py:91
↓ 1 callers
Method
initToolBar
Initialize a Tool Bar with options to randomize the settings and open multiple windows based on the number of window specified.
src/MainWindow.py:99
↓ 1 callers
Method
initUI
The window is initialized randomly in a bounding box that's relative to the screen. The Image Label to hold the image is given the sa
src/ImageWindow.py:28
↓ 1 callers
Method
initUI
Initialize the window settings, layout and the UI components.
src/MainWindow.py:21
↓ 1 callers
Method
initWindow
The main window settings and properties are assigned here. The winow location is kept relative to the screen size and the size of the
src/MainWindow.py:29
↓ 1 callers
Function
main
Creates the Image Window Manager that can be used to open the image windows.
src/MultiWindowTest.py:5
↓ 1 callers
Method
restartGif
Used to sync the GIF animation across all windows.
src/ImageWindow.py:146
↓ 1 callers
Method
setKeepCentered
(self, state)
src/ImageWindow.py:25
↓ 1 callers
Method
setMoveWithWindow
(self, state)
src/ImageWindow.py:22
↓ 1 callers
Method
setScale
Scale the image and its label based on the user input by using the scale slider.
src/ImageWindow.py:153
↓ 1 callers
Method
updateAllWindows
Updates image preview in the main window and loads the image in all image windows.
src/MainWindow.py:212
↓ 1 callers
Method
updateImageScale
Apply scale value from the slider to the all the image and their labels in the image window.
src/MainWindow.py:296
↓ 1 callers
Method
updateImageSettings
Apply settings from the checkboxes. Give message in the status bar about one of the bugs that we're currently facing.
src/MainWindow.py:307
↓ 1 callers
Method
updateTimeStep
Update refresh rate of Update Function in the windows based on the radio button selected.
src/MainWindow.py:281
Method
__init__
The settings and window is intialized as well the path of the image to be shown is assigned.
src/ImageWindow.py:14
Method
__init__
Initialize the UI of the window, assign the default path of the images, and intialize an array to store all the image windows.
src/MainWindow.py:12
Method
closeAllImageWindows
Close all the windows and remove their reference in the Main Window.
src/MainWindow.py:349
Method
closeEvent
Communicate to the main window that one image has been closed to remove it from the list of the imageWindows.
src/ImageWindow.py:167
Method
confirmQuit
Quit Window. You can't see me :-]
src/MainWindow.py:367
Method
moveEvent
Override the default move event to communicate the positon between different windows when an Image window is moved. It ensures that i
src/ImageWindow.py:71
Method
onImageMoved
Handles communication b/w windows on moving a window and updates the position of the images in other windows.
src/MainWindow.py:246
Method
openFileDialog
Opens File Explorer to choose image/GIF files. The selected image is displayed in Image Windows.
src/MainWindow.py:197
Method
openMultipleWindows
Open multiple mindows specified in the toolbar.
src/MainWindow.py:338
Method
randomizeSettings
Randomize all the Main Window Settings.
src/MainWindow.py:322
Method
removeImageWindow
Remove closed window based on signals from the closing window.
src/MainWindow.py:360
Method
updateImagePosition
Used to update the position of image ensuring that the image remains at a consistent position relative to the other windows. If the
src/ImageWindow.py:120