charpicker package

Submodules

charpicker.controlbutton module

charpicker.controlslider module

charpicker.cpglobals module

charpicker.gridsnap module

class charpicker.gridsnap.GridSnap(parent, size)

Bases: sphinx.ext.autodoc.importer._MockObject

cleanUpUponClose()

Removes parent and signal-slot connections to allow for complete cleanup upon garbage collection.

enterEvent(event)

If a new button is being added to the tab view, bring center of the button to the cursor whenever cursor enters the grid.

hidePoints()

Hides the snapping points.

mouseMoveEvent(event)

If a new button is in the process of being added, the center of the new button moves with the cursor. Otherwise, call parent tab view’s mouseMoveEvent to resize rubber band if currently box picking.

mousePressEvent(event)

Calls tabview’s mousePressEvent for button selection handling.

mouseReleaseEvent(event)

Hide intersection dots once button is placed. Call parent tab view’s mouseReleaseEvent to hide rubber band if currently box picking.

paintEvent(event)

Paints the QTableWidget. If parent TabView is box picking, the marquee pen is assigned to the QPainter and the painter draws and fills the box based on the selectionOrigin point and selectionEnd point. If parent TabView is lasso picking, the current line of lassoPath is extended to the selectionEnd point. The path is filled and a line is drawn to connect selectionOrigin and selectionEnd to like that of the Scene Viewer. When picking is not happening, all painting is erased and ended.

scaleGrid(size)

Resizes grid and scales the grid cells, based on the number of rows and columns, and the given size.

setCellSize(new_cell_size)

Sets square size of the grid cells. Updates rectangle size and replaces cell widgets to fit the new size.

setGridSize(size)

Resizes grid based on given size.

setSnapDistance(distance)

Sets distance indicator between cursor and corner point for when snapping should occur.

snapEvent(button)

Snap center of button to a grid line intersection point and make the point a cyan color if distance between point and cursor is within snapping distance range. Similar to the Scene Viewer, if there are multiple buttons selected and a new button is not being added, all other selected buttons are shifted relative to the snapping button.

charpicker.mainwidget module

charpicker.tabview module

charpicker.tabwindow module

Module contents